Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help: Running a simple RMI app over Internet

843793Feb 12 2003 — edited Mar 29 2010
I have a very simple RMI test application which I can run over my local network but it won't work over the Internet:

Let's say that my server's url is "www.myurl.com", I started the rmi registry on port 1099 and I've bound my Remote object to the name "server":

-If the rmi registry is not running on my server and my client calls Naming.lookup("www.myurl.com:1099/server"), I get a ConnectException stating "Connection refused to host: www.myurl.com"

-If the rmi registry IS running on my server and my client calls Naming.lookup("www.myurl.com:1099/bogusName"), I get a NotBoundException for the name "bogusName"... So at least I'm connecting to my server's registry.

-If the rmi registry is running on the server and my client calls Naming.lookup("www.myurl.com:1099/server"), I get a ConnectException stating "Connection refused to host: 192.168.0.5". Note that 192.168.0.5 is my server's local IP address. I would think that the client can't see this url because they are on different networks! Does this sound like a java problem or a firewall problem? I've spend a lot of time looking into both. I'd be happy to post code if anyone would like.

thanks in advance,
Jay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2010
Added on Feb 12 2003
22 comments
750 views