John Went

Greenhorn
+ Follow
since Dec 27, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Went

Yes, it was because of the firewall. Thank you for the suggestion.
9 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.
9 years ago