If you get a connection refusal that means the port you're trying to connect to is open. So, either you're connecting to the incorrect IP address or port, or the server is listening on the incorrect port or isn't functioning at all.