Success in sharing internet connection with desktop PC. How to access web server on port 80? I have a situation at home, the room where I have my desktop PC, router, printer, etc is being remodeled so I moved my PC to another room. Now the PC is far away from the router but it will be only for a couple of days. The PC do not have any WiFi adapter so I'm using my Android phone to share the Internet connection.

The problem is that I need to access the web server running in the desktop PC from others devices connected to the same router. I usually do it by using http://192.168.2.4 from the other devices. Obviously this does not work now.

Additional info that may be useful:


The PC running a web server has Linux Ubuntu 14.04 as OS.
This PC has adb installed. adb detects this phone.
This PC sees its own IP as 192.168.42.35, the url http://192.168.42.35 works but only from the same PC.
This PC, according to nmap, sees the Android phone as 192.168.42.129.
This PC can ping the others devices by the same IPs as before (192.168.2.x)
The others devices cannot reach this PC.
Router seems to have assigned 192.168.2.100 to the Android phone. The url http://192.168.2.100 does not connect to the web server. http://192.168.42.35 obviously does not work (from the other devices), but I tried anyway.


Update:

It seems I almost there. It's not perfect but, using an app called "Port Forwarder" seems possible. The only gotcha is that you cannot forward ports requiring root privileges (and my device isn't rooted anyway). So I will have to conform with 8080 to 80 mapping, but it's better than nothing.

I will share the steps needed to accomplish this If I success.
The port forward app you mention won't port below 1024.

The app you require is TCP Port Fowarding. It is installed in Android. You can use it with USB adb to setup a VPN. It also is ran from user-space and root is not required.