File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Java RMI Connection Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Java RMI Connection Problem" Watch "Java RMI Connection Problem" New topic

Java RMI Connection Problem

pavan bellari

Joined: Sep 19, 2003
Posts: 24
I am connecting Windows and Linux machine thru Java RMI. and my server files are in Linux Server. when I connect Linux machine( thru Java on Windows It is showing error:
java.rmi.ConnectException: Connection refused to host:; nested exception is: Connection refused: no further information
although I have given the ip-address of the linux machine(here it is The error is Connection refused to host:
and I haven't mentioned or localhost any where in the program
raimondas zemaitis
Ranch Hand

Joined: Feb 23, 2001
Posts: 104
post some code, it is not clear what you actually do.
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
it looks like your problem is the server address. Your exception says the connection is refudes to (loopback) not you linux box IP. You've stated the problem yourself.
Here's is the code I use to connect to the server from the client:

Maybe you can compare that to yours and get it working.
debasis chakraborty

Joined: Nov 08, 2003
Posts: 4
i am also doing same type of project.
can you send your code .So can test your problem.I am sure i will solve your
I agree. Here's the link:
subject: Java RMI Connection Problem
It's not a secret anymore!