Java Networking: Connection refused - Yes, my server is running

后端 未结 4 1093
你的背包
你的背包 2021-01-15 16:18

I\'m getting following error when my client tries to connect to my server socket:

java.net.ConnectException: Connection refused: connect

Bu

4条回答
  •  灰色年华
    2021-01-15 16:46

    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.

提交回复
热议问题