Hi,
I am running a server which sends data to the client i.e android device
with the help of sockets via wifi .On client side i am getting the
following exception.
*Exception: java.net.unknownhostexception unable to resolve host .*
*Code:*
*
*
clientSocket = new Socket("MY_PC_IP(SERVER_IP)",PORT
You indicate a literal string "MY_PC_IP(SERVER_IP)" for the host name. Is
that accurate, or do you mean you have an ip addr there?
UnknownHostException means a failed dns lookup. If you're using an ip
addr string, dns shouldn't be involved, but if you're using a host name it
probably means that
2 matches
Mail list logo