Speaktech.in

How to access WiFi hotspot connected device from usb tethered device of same android

My goal is to be able to remote desktop my laptop connected to Wifi Hotspot of android phone from my desktop (My Desktop running Linux Mint) which is connect to same android phone via usb tethering

So I found out that the USB tether desktop had been assigned IP by android phone : 192.168.42.91 (Gateway for the same was 192.168.42.129) and the WiFi connected laptop was assigned 192.168.43.149 ( Gateway for the same was 192.168.43.1).

My attempts to install xrdp and realvnc failed due to configuration complexity. So i tried nomachine which is free and open source and can be downloaded from https://www.nomachine.com/download.


Configure Proxy server on android phone

Since both my laptop and desktop are on different ip range i need a proxy server to connect them. Nomachine uses Port 4000 which can be checked using nmap.

Go to google play store and download a proxy server app.

I Used https://play.google.com/store/apps/details?id=com.icecoldapps.proxyserver

After installation of proxy server app on android configure the same using the following steps:

Add a new server and fill the following details

i) Give a suitable name

ii) Run on Port : 4000

iii) Tick Checkbox keep connection alive

iv) Tick Checkbox forward request to the same host

v) forward to host -> 192.168.43.149 ( Ip of your target machine)

vi) forward to port -> 4000

vii) Press back and it will prompt to save

viii) Start the server


Configure Target machine to run Nomachine Server

Install Nomachine after downloading correct version from their website. Once installed you will find nomachine service icon in taskbar.

Click on it run Nomachine as server on target machine. In my case it was (192.168.43.149).

Access Target machine from client

Install Nomachine after downloading correct version from their website. Run Nomachine as client on other machine. In my case my desktop 192.168.42.91.

i) Add a new connection and give ip of your phone gateway.

  (For me it was 192.168.43.1 and proxy server will redirect all my request to 192.168.43.149).

ii) Default port is 4000. You can set password authentication for target machine.


This is easy to setup and you don't need any additional hardware to remote desktop another computer in home.