java - Android web socket set server end point -
i use socket connect "iphere:8080/chat/" iphere being replaced real endpoint ip. whenever use
private static final int serverport = 8080; private static final string server_ip = "iphere/chat/"; socket socket = new socket(server_ip, serverport);
i received error message :
04-25 22:38:37.745 12521-12959/com.package.slidingtabs w/system.err﹕ java.net.unknownhostexception: unable resolve host "iphere/chat/": no address associated hostname
Comments
Post a Comment