How can I access USB tethered device from WiFi hotspot? So I found out the hard way that the USB tether IP is 192.168.52.x and the WiFi addresses are 192.168.53.x.

My goal is to be able to access the USB tethered device (Raspberry Pi) from WiFi as if it's the same network.

If I had to specific ports, that'd be ok, but I'd like to avoid that if possible. I found this XDA post about reverse tethering (sharing a PC's internet connection over Android WiFi) which I think is really close to what I need, but in a different configuration.

Any help is greatly appreciated!

To add further clarification, let's say there are three devices: an Android phone, a Raspberry Pi, and a Macbook. The Raspberry Pi is tethered via USB to the phone. The Macbook is connected to the phone via WiFi. I want to connect to the Raspberry Pi from the Macbook.
I had the same problem: Raspberry Pi B+, laptop, and android phone. I wanted to use putty from laptop to administrate the Pi.
Solution was:

Install proxy server on android: Proxy server
Install a software to find out network connections of android, for me this worked: Ping and DNS
Connect Pi to android phone through USB tethering. How to: Accessing Internet from Pi using USB Tethering of Android - Raspberry Pi Forums
Connect laptop to android phone using WIFI hotspot

Now your phone sees both devices, but Pi cannot see laptop. Solution is to forward packages from laptop to Pi using any relevant phone application (like proxy server mentioned above)
Let's assume that we mainly need to do SSH from laptop to Pi using Putty. So at the end we should have:
LaptopPutty-&gt;AndroidProxyServer-&gt;Pi
AndroidProxyServer will accept connections from LaptopPutty on XX port
then AndroidProxyServer will forward the packages to Pi on port 22 (the SSH port)

Run Ping and DNS-&gt;network on android and find out what IP address does your Pi, and android phone have. (you will use both later)

Android proxy server setup:



open app
Add a server
Name: any you like
Port: any you like, it will be used in Putty (XX)
Connection time out: put something huge like 999999, otherwise server will terminate your connection in the middle of some calibrations to your pi
Switch to &quot;Rules&quot; tab on the top of the app
Add a rule
Host: your laptop name. (proxyserver will apply rule if connection comes from this host; laptop name could be found by &quot;whoami&quot; command in windows cmd.)
Forward to host:IP address of the Pi, found in step 5
Forward to port:22


Run the Android proxy server

on laptop run Putty, and under session set:



Host Name (or IP address):Ip address of your Android phone, which you found in step 5
Port: XX, the one you put when setting up Android proxy server in step 6
Connection type:SSH

Should be working now.