• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running RMI over Internet

 
Ranch Hand
Posts: 62
Ruby Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ruby Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ruby Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic