posted 10 years ago
Hello. Long story short I am trying to run a client server RMI application on two different machines running Windows, but I have some trouble.
A simplified code of the server is:
And the Client:
The exception I get is: "ConnectException: Connection refused to host: 192.168.1.100; nested exception is: Connection timed out: connect".
I know this question has been asked a million times and I found out that I have to change the properties of the server and that is why I added the System.setProperty("java.rmi.server.hostname", "192.168.x.x"); line but the error remains. For the IP addres I am using the one returned from ipconfig.
I will be very thankful if someone could suggest what I can change.