String ip = "ws://ip:port/websocket/home"
InetAddress address = InetAddress.getByName(ip);
报错
UnknownHostException:Unable to resolve host "ws://ip:port/websocket/home": No address associated with hostname
该怎么解决?
...全文
43510打赏收藏
socket Unable to resolve host "ws://ip:port/websocket/home":
String ip = "ws://ip:port/websocket/home" InetAddress address = InetAddress.getByName(ip); 报错 UnknownHostException:Unable to resolve host "ws://ip:port/websocket/home": No address associated with hostname 该怎么解决?