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

前端 未结 14 2651
攒了一身酷
攒了一身酷 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:38

    In my case I was unable to edit the hosts file because using a pc from the university.

    I fixed the problem running rmiregistry in another port (instead of 1099) with:

    rmiregistry 
    

    and then running the server on that port.

    It was basically an error caused by occupied port.

提交回复
热议问题