wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Running RMI over Internet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Running RMI over Internet" Watch "Running RMI over Internet" New topic
Author

Running RMI over Internet

Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

I try to run RMI over Internet. Locally it is working fine, but when I try to contact the server from my client machine over internet I get a NoPassToRouteException. I searched the Internet for hours but didn't find the apropriate answer.

I have a server machine (Linux with Apache web server) where I connect to over SSH.
I have a client machine (Linux)

Here is how I start my server. The IP address is dynamic provided by the ISP at the time. I opened port 80 on my router. The Apache web server is running on ubuntumobile. The rmiregistry is running on ubuntumobile and CalculatorServer is invoced on ubuntumobile.


So the server starts up and is waiting for requests.

Now I start the client


Does anybody know what I am doing wrong?

Pierre
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Port 80 is for HTTP traffic. RMI uses some other port - 1099 is the default, if memory serves, although I suppose that is configurable.
Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

Thanks for the idea. I opened port 1099 at my router (I am using default port) but this did not help. Do you have any other solutions?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Pierre Sugar wrote:Thanks for the idea. I opened port 1099 at my router (I am using default port) but this did not help. Do you have any other solutions?

What about your firewall, did you also give port 1099 access there ??


Regards, Rene Larsen
Dropbox Invite
Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

Rene,
I am traveling at the moment. When I am back at my system I will check this and come back to you.
Thanks
Pierre
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running RMI over Internet
 
Similar Threads
codebase problem
RMI: missing _Stub
RMI fails to connect between XP and Linux
Policy files and examples
Sun's RMI Tutorial