I have connected Android application to PC by Socket connection. The code I used very simple like:
InetAddress hostIP = InetAddress.getByAddress(SERVER_IP);
Sender_Socket = new Socket(hostIP, SERVERPORT);
My SERVER_IP
is: "10.224.41.104"
hostIP is 10.-32.41.104
and IOException
occur when create new Socket with hostIP
How should I fix this problem? Thanks for all help ^^