I am having a problem setting up my RMI connection. When executing this code:
I receive these errors:
When I telnet or portscan 192.168.13.18 (which is my ip address given to me by a switch), I am not able to connect. However when I telnet or portscan 127.0.0.1 I am able to connect to port 1099. The company I work at does use a proxy but I set Java to 'direct connection' in the Control Panel so I do not think the proxy is involved. I have also added an 'RMI' exception entry in my Windows XP firewall on port 1099. A tracert to 192.168.13.18 takes one hop so I do not think that the switch is the problem.
My questions are these:
>Why does RMI try to connect to 192.168.13.18 in stead of 127.0.0.1, where is this setting stored?
>Why doesn't 192.168.13.18 work while 127.0.0.1 does, any ideas what could be causing this?
Actually I am getting same error while developing the RMI application few days ago, so when I removed the Security Manager and applied appropriate policy the application worked.
Or either your RMIRegistry is not running