Can you connect to the socket server from the host machine of the emulator? I donβt know about you, but I tested the network client application on the Android emulator, and it seems to have access to anything on the network that can only be in my development box using standard Java network calls, and no special emulator settings . This includes the wider Internet.
If you cannot, you need to configure the server side to make sure that the server is located on remote computers; this has nothing to do with what you do on the side of the Android emulator, unless the server is an Android emulator. Perhaps this is due to firewall rules and standard network routing.
source
share