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

前端 未结 2 883
抹茶落季
抹茶落季 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 21:57

    Have a look at the answers to: java.net.ConnectException: Connection refused

    My first suspicion however would be a firewall issue.....

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题