Skip to content Skip to sidebar Skip to footer

Android Socket Doesn't Connect To Laptop Server - But Local Java Program Can

Networking being a pain. In a service using AsyncTasks I attempt to start socket communication: public class TransmitService extends Service { private Socket echoSocket = null

Solution 1:

Oh boy this is silly and embarrassing. Basically I was using the wrong IP address (192.168....).

In Windows, use ipconfig (Linux: ifconfig), and choose the IP address corresponding to Wireless LAN (wlan). I was using another IP address corresponding to a virtual machine or some crap.

Hope this helps someone else in the future, I hate these kind of issues.

Post a Comment for "Android Socket Doesn't Connect To Laptop Server - But Local Java Program Can"