File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Why can't client connect to RMI server on same machine? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Why can Watch "Why can New topic
Author

Why can't client connect to RMI server on same machine?

Matt Senecal
Ranch Hand

Joined: Dec 01, 2000
Posts: 255
I'm trying to get a client to connect to an RMI server that resides on the same machine, but it's not working. When run, I get the following exception:
java.rmi.ConnectException: Connection refused to host: 121.0.0.55; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
The machine in question is a Solaris 8 system running Java 1.3. I've checked all the networking permissions, and they seem to be ok. Any ideas as to what might be causing this?


There's nothing more dangerous than a resourceful idiot. ---Dilbert
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Is rmiregistry running?
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Matt Senecal
Ranch Hand

Joined: Dec 01, 2000
Posts: 255
Uh, how do I check that and get it running?
Originally posted by Michael Ernest:
Is rmiregistry running?

 
I agree. Here's the link: http://jrebel.com/download
 
subject: Why can't client connect to RMI server on same machine?
 
Similar Threads
Oracle 9iAs setup for Jbuilder
RMI Exception
RMI Server problem
Urgent help on ConnectException required..
help jboss