many-fac3d-g0d / ServeIt

43 stars 3 forks source link

Phone as the hotspot and the server #16

Open sls1005 opened 4 months ago

sls1005 commented 4 months ago

Description

When the phone is used as the hotspot and the server at the same time, the app will fail to infer the private network address (192.168.*.*) and will instead use the loopback address (127.0.0.1), which will provably make it inaccessible from the local network. Even if the hotspot does have a 192.168.*.* address, it is not used.

Steps to reproduce

  1. Use the phone as the Wifi hotspot.
  2. Start the server.

Possible solution

I understand that there might be technical limits. If so, please allow manually setting the IP address, because the user knows the address. I also understand there might be security concerns. You still can check for 192.168.0.0/16 or 127.0.0.1/24 if it's considered inappropriate to use something else.

Version