Why can't client connect to RMI server on same machine?
posted 15 years ago
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: 126.96.36.199; 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