(How) Can an android virtual device use the local computer’s internet?

https://developer.android.com/studio/run/emulator-networking.html

As noted therein:

“Each instance of the emulator runs
behind a virtual router/firewall
service that isolates it from your
development machine’s network
interfaces and settings and from the
internet. An emulated device can not
see your development machine or other
emulator instances on the network.
Instead, it sees only that it is
connected through Ethernet to a
router/firewall.”

So you’ll need to use the server’s public IP (as opposed to it’s local network IP).

Leave a Comment