Java sockets - java.net.ConnectException: Connection refused: connect

前端 未结 2 907
抹茶落季
抹茶落季 2021-01-16 21:19

I\'ve created a simple chat program which communicates using sockets. Everything works fine when I\'m running it on localhost. However, the problems occur when I try to link

2条回答
  •  渐次进展
    2021-01-16 22:14

    Is your client on same LAN as your server? I think you should re-check IP address / host name and port number to which your client is connecting.

提交回复
热议问题