• 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

RMI Connection Exception Help

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to test my application in server mode.
I start the RMI server and bind the object on a given ip address.

Then on my own machine in my DataConnector when I do Naming.lookup() I get an exception:

> Connection refused to host: 172.24.9.85

Now the problem is that this is my ip address and not the address I am trying to connect to.

I then tried Naming.list(ip) and I got the same exception.

Any thoughts ?

Thanks.
 
Alan Morgan
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alan Morgan:
Hi,

I am trying to test my application in server mode.
I start the RMI server and bind the object on a given ip address.

Then on my own machine in my DataConnector when I do Naming.lookup() I get an exception:

> Connection refused to host: 172.24.9.85

Now the problem is that this is my ip address and not the address I am trying to connect to.

I then tried Naming.list(ip) and I got the same exception.

Any thoughts ?

Thanks.




Worked it out.
Needed to add "rmi://" before the ip and ":1099" after the ip and before the object name.

Ah well I suppose this may help someone else who has a similar problem.
reply
    Bookmark Topic Watch Topic
  • New Topic