1
2
I have an application on my remote server, it can only be accessed through localhost:3000 (not accessible from internet)
When I SSH into my remote server using putty with a tunnel L"*:3000" localhost:3000
and the local ports accept connections from other hosts
box checked, I can access the application by going to http://127.0.0.1:3000
on my local machine. I can further access the application by going to http://192.168.0.9:3000
(my local machines internal network address) on a tablet connected to the same wifi.
I have setup OpenVPN on the remote server and I can access the application by going to http://10.8.0.1:3000
however I need to be able to access it from another device on my local network (the tablet). How would I route 127.0.0.1
to 10.8.0.1
so that I can access the application from my tablet by going to http://192.168.0.9:3000
like I could do when using putty?
Since you want the tablet to access the local PC (192.168.0.9:3000) but in actuality it connects to the remote server (10.8.0.1) you can set up putty with the same forwarding. So on the local PC, you set up putty with Source Port 3000, Destination 10.8.0.1:3000 - this will allow anything connecting to 192.168.0.9:3000 forward the connection to 10.8.0.1:3000. Hope this helps. – Darius – 2013-09-07T00:11:33.227
the problem with using putty is that it doesn't support udp which is why I'm trying the vpn route. – Roger – 2013-09-07T00:24:07.227
Another possibility since you mentioned VPN, you can VPN your whole connection (VPN connects from your local modem to the remote host) therefore all connection are VPN through to your remote host, not just your local PC. – Darius – 2013-09-07T03:52:21.880
Was googling fairly randomly and found this that may be to your interest: http://zarb.org/~gc/html/udp-in-ssh-tunneling.html
– Darius – 2013-09-07T13:09:24.880