I\'m getting following error when my client tries to connect to my server socket:
java.net.ConnectException: Connection refused: connect
Bu
Some routers doesn't allow the internal network to connect to the external IP address of the router.
You can try to use telnet to connect to your server socket. If telnet isn't able to establish a connection, it's likely a networking problem.