TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.36k stars 2.57k forks source link

SOCKS: Connection refused #1352

Closed FollowerCultBZZ closed 10 months ago

FollowerCultBZZ commented 10 months ago

I'm trying to connect to a websocket using a proxy, but it gives me that the connection is refused. What could be causing this error? Is the proxy to blame, or is it something in my code?

PhilipRoman commented 10 months ago

Can you clarify your setup? Are you explicitly setting the proxy with the setProxy method or connecting otherwise? If possible, please show your client side code which does the connection.

FollowerCultBZZ commented 10 months ago

The reason for the error was in the proxy type. IPv4 required.