RMI connection refused on localhost
问题 I am trying to learn RMI coding and when I run server side of RMI I get connection refused. This is my server main method public static void main(String[] args)throws Exception { Implementation impl=new Implementation(); Naming.rebind("//localhost:2020/RMI", impl); System.out.println("Implementation has been bind to the name RMI and is ready for use"); } I believe that the code for Implementation does not matter as it simply is the implemented interface that will run the code. The exception I