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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -