java.net.NoRouteToHostException: No route to host

rest api can be used, but when I run the websocket demo PingExample by java, report error:
Exception in thread “main” com.binance.connector.client.common.ApiException: Message: java.util.concurrent.CompletionException: java.net.NoRouteToHostException: No route to host
HTTP response code: 0
HTTP response body: null
HTTP response headers: null

how can I resolve this error. please

Hello @maasyi1224 ,

It could be a network issue on your side, such as blocked by firewall.

Could you please try with a tool like wscat ?

wscat -c wss://ws-api.binance.com:443/ws-api/v3                                                                  
Connected (press CTRL+C to quit)

You should see “Connected”, if it doesn’t show ‘Connected’ then it means that the host can’t be reached from your machine.

Please let us know the result.
Thank you.