I wanted to access a Non Standard HTTP Port on one of my RaspberryPi Hosts, which was not directly available to the Internet, so I have chosen to establish a SOCKS Tunnel to achieve that.
Web Application on my LAN
Getting my RaspberryPi’s Private IP Address:
1 2 |
|
For demonstration purposes, I will use Python’s SimpleHTTPServer:
1 2 3 4 5 |
|
Establish the SOCKS Tunnel
From my laptop, establishing the SOCKS Tunnel with SSH, you can use -f
to fork it in the background:
1
|
|
Configure your Browser:
Configure your browser to Proxy via:
- Host: localhost
- Port: 8157
Now when you access the destined host’s private ip, you will get a response:
1 2 |
|