java.rmi.ConnectionExceptionException:Connect refused to host 2004-11-17 - By Panos Konstantinidis
Back IP addresses starting with 192.168 are "internal" addresses, meanign that there uis a firewall or proxy in front of it. This is the IP that you use *behind* the firewall proxy, other computers over the itnernet are not able to see it by using this IP address. You will need to use the real IP, the one that the firewall is using.
--- Edward King <zhangsc@(protected)> wrote:
> I write a rmi,when server and client runs in the same machine,it runs ok,then > I run them in two machines,server runs in 192.168.0.1,like follows: > C:\>rmiregistry -J-Djava.security.policy=registerit.policy > C:\>java -Djava.rmi.dgc.leaseValue=1000 > -Djava.security.policy=registery.policy RegisterIt > Object instantiated: HelloServer[RemoteStub [ref: > [endpoint:[192.168.0.1:3120](l > ocal),objID:[0]]]] > > and it ok ,client runs in 192.168.0.2, but it raise errors: > java -Djava.security.policy=registerit.policy HelloClient > HelloClient exception :java.rmi.ConnectionException:Connection refused to > host:192.168.0.2;nested exception is:java.net.ConnectException :Connection > refused:connect > > Why? how to solve it? I have puzzled with it for many days! Please help. > Any idea will be appreciated! >
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|