java.rmi.ConnectException: Connection refused to host: 127.0.1.1;

前端 未结 14 2662
攒了一身酷
攒了一身酷 2020-11-27 15:08
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
    java.net.ConnectException: Connection refused
    at sun.rmi.transport         


        
14条回答
  •  感动是毒
    2020-11-27 15:28

    Maybe your rmiregistry not be created before client trying connect to your server and it would lead to this exception.In Linux, you can use "netstat" to check your rmiregistry be bond on the right port you assigned in java code.

提交回复
热议问题