I have Android client app that communicates with server using Socket
.
On my development machine, SocketServer
(server is also written in Java) i
If I got it right: your socket server is running on a separate machine. You cannot use 127.0.0.1 to connect to that server through your Android phone as that is the local loop back address. Find your machine's IP address and use that instead.
In case of using it on the emulator when you try to connect to the socket server running on your machine you still cannot use 127.0.0.1 as that is local loop back address for the Emulator.