I'm new to RMI and I'm trying to implement it for a small game; however when I try to run it, it doesn't work and I've spent a lot of time to understand why, but I still haven't figured it out. Maybe some of you have something similar happened to them
This is the client:
this is the server:
and this is the error that it's showed when I try to run it
Try defining "HOST" as "localhost" instead of as "127.0.0.1".
Also check to make sure that you don't have a firewall blocking RMI calls. The "netstat" command can be used to determine if your RMI server is running properly.