Access webserver from a USB-tethered Android

28 views Asked by At

I made a small web app using flask on a raspberry pi, and I would like to access it from my phone, in a place without network (local or internet) connection. Using USB tethering, I can access my web app if I know its IP address. The server does not have a screen though, so it's a pain to figure out which IP address it received from Android.

Currently, I use Network Analyzer Pro to scan the full 192.168.x.x range, but it's very inconvenient and slow.

I figured that I could use Bonjour/Avahi/Zeroconf, and it works when connected to my local network, but not with a direct USB tethering connection.

Is there a way to make Android either 1) give me the IP address it gave to my webserver when it connected through USB, or 2) resolve the Bonjour address, 3) or any other solution to access my web app conveniently?

Thanks for any help!

0

There are 0 answers