TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

IPv6 not working #139

Closed devgianlu closed 6 years ago

devgianlu commented 6 years ago

Hi, I've tried connecting with using an IPv6, but I got this exception:

com.neovisionaries.ws.client.WebSocketException: Failed to connect to '[fe80::bafc:9aff:fe9b:54e2]:6800' : Invalid argument
        at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:136)
        at com.neovisionaries.ws.client.SocketConnector.connect(SocketConnector.java:83)
        at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2152)
        at com.neovisionaries.ws.client.ConnectThread.runMain(ConnectThread.java:32)
        at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
Caused by: java.net.ConnectException: Invalid argument
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:343)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:205)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:187)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
        at java.net.Socket.connect(Socket.java:586)
        at com.neovisionaries.ws.client.SocketConnector.doConnect(SocketConnector.java:120)
        ... 4 more