Forums Register Login

RMI

+Pie Number of slices to send: Send
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


1
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Changing "127.0.0.1" into "localhost" worked! Thank you for your help
+Pie Number of slices to send: Send
The documentation was imprecise. Where it said "host", it should properly have said "(resolvable) hostname".

The getRegistry was attempting to locate a host with the name of "127.0.0.1" instead of the address of 127.0.0.1, so it failed.

Apparently there's no getResistry call for an IP address, but if you don't supply any arguments, localhost is the default.
Screaming fools! It's nothing more than a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2672 times.
Similar Threads
Why do I get those exceptions? Please HELP....
RMI UnknownHostException Problem
Access Control Exception
Can't launch RMI
unable to invoke RMI-help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:37:49.