Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

202
Visualizações
How do I send requests to a private network?

I'm trying to connect to a NodeJS server I wrote in my school network from home so I can work on it. However it's behind a router firewall I have no access to. Is there any way I can make my server accessible from the outside so I can make requests from it?

I was considering some kind of socketed connection where my server tries to "reach out" to my home network every second to establish a link which we can use, but I'm not sure that's feasible or even the best way to go about it.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Let A be your school server, B your home server, A_user your username on A, and B_user resp. on B.

On B: assuming you are running linux, ensure you have openssh-server installed and running.

On A:

ssh -R 10022:localhost:22 B_user@B

This establishes an ssh connection to your server at home and open a reverse tunnel. This tunnel means that any connection on B's port 10022 will be forwarded over that first ssh connection to A's port 22 (ssh).

Now on B:

ssh -p 10022 A_user@localhost

This should give you the idea. In practice, you will find that that ssh tunnel will stop working every once in a while. Once you are ready for it, look at autossh to keep it alive and reestablish it automatically if necessary.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda