NIO client giving exception : java.net.ConnectException: Connection refused: no further information

后端 未结 3 740
生来不讨喜
生来不讨喜 2020-12-18 04:27

I modified the sample code available here for Client and Server My client :

public class Client {

public static void main(String[] args) {

    int n=10000;         


        
3条回答
  •  感情败类
    2020-12-18 04:41

    Try doing Telnet using command -

    telnet [host IP] [port] 
    

    Issue may be with firewall blocking port.

提交回复
热议问题