Answer the question
In order to leave comments, you need to log in
How to connect to a host on a LAN from outside that LAN?
How to connect to a socks server running on a computer in the local network (a laptop connected to wifi) from outside this network.
The option with port forwarding on the router works, but does not meet the requirements: the user must run the program, and we connect to it from the server. Without actions to configure the router for the user.
Alternative approaches are possible. The code for both the client and the server in js. The goal is to connect to the host as a proxy server.
Answer the question
In order to leave comments, you need to log in
why "port forwarding" does not meet the requirements, if the forwarding was created exactly for this??
state these requirements and then the correct answer will be given.
The option is with port forwarding. Otherwise, how to connect to the server from the outside? if the client cannot reach this server)))
Solution - proxy the server connections through your "server"...
For example, the client has a vpn tunnel up to your server and the required port is opened. As a result,
someone knocks on the name of your server>>the server redirects it to the user (who is the socks server)
Well, or you can probably do it without VPN, like a proxy or nginx thread... do the same scheme
The solution is quite simple - assign a white IP to the host. If this is not possible, then you can use udp hole punching or use a reverse proxy.
Have a look at wstunnel - https://github.com/erebe/wstunnel
But it will probably need to be improved.
Or here's another one, but again, it probably needs to be finalized https://www.section.io/engineering-education/ssh-i...
And here is the finished version! https://github.com/elisescu/tty-share
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question