I am setting up an rmi peer to peer network, the network discovery has already been sorted.
When the firewall is off it works but when the firewall is up and port 1099 is open it won't work. Is there another port I have missed?
RMI server setup:
RMIFileInterface stub = (RMIFileInterface) UnicastRemoteObject.exportObject(this,0); Registry reg = LocateRegistry.createRegistry(1099); reg.rebind("FServer", stub);
And RMi client setup is
Registry reg = LocateRegistry.getRegistry(ip); fi = (RMIFileInterface) reg.lookup("FServer");