I have Android client app that communicates with server using Socket
.
On my development machine, SocketServer
(server is also written in Java) i
Is your Android code running in an emulator or on real hardware over WiFi? If you're running in an emulator, the IP address for your development machine would probably be 10.0.2.2 (see Android Developer Tools: Emulator).
If your app is running on an Android phone connecting over WiFi, you have to specify your machine's IP address, not the loopback address.
Also, when you say your SocketServer is listening at 127.0.1.1, are you binding to that interface? You shouldn't bind to the loopback if you're expecting connections from other interfaces.