Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running RMI over Internet

 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic