-
1. Re: Connection Refused with Trivial client on second machine
ahjulsta Jan 20, 2002 9:34 AM (in response to cxtinac)
I'm experiencing similar (identical?) problems. What could I be doing wrong?
There is traffic between my client and the host. Looking at the packets, there is traffic from the server port 1099 to my machine. In the payload of one of the packets, I find the text "127.0.0.1". There is also mention of several class-names related to naming:
org.jnp.server.NamingServer_Stub, java.rmi.server.RemoteStub and java.rmi.server.RemoteObject
After this happens, I get a "connection refused to host 127.0.0.1"
This leads me to the conclusion that there is an issue with the configuration of my server...
But, the only configuration-file I'm able to locate
(grep -r "127.0.0.1" * ; grep -r "localhost" *) is jndi.properties, with a line saying:
# Do NOT uncomment this line as it causes in VM calls to # go over RMI!
#java.naming.provider.url=localhost
Am I missing something? -
2. Re: Connection Refused with Trivial client on second machine
adrian.brock Jan 20, 2002 9:39 AM (in response to cxtinac)Have a look in your host table.
You will see something like
127.0.0.1 localhost myhostname
xxx.xxx.xxx.xxx myhostname
remove the myhostname from 127.0.0.1
Regards,
Adrian -
3. Re: Connection Refused with Trivial client on second machine
ahjulsta Jan 20, 2002 10:00 AM (in response to cxtinac)> Have a look in your host table.
> You will see something like
>
> 127.0.0.1 localhost myhostname
> xxx.xxx.xxx.xxx myhostname
>
> remove the myhostname from 127.0.0.1
Well, in my case, the problem was that the development server uses dynamic ip, and had a bogus hostname. But, I wouldn't have looked in that direction without your pointer.
I think this might be a FAQ...
Thanks,
Åsmun.