 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
robin Guest
|
Posted: Sat Nov 29, 2003 2:57 pm Post subject: help rmi connect time out error ! firewall |
|
|
my rmi server lies inside a firewall and the client resides outside
and my firewall have allow access port 2000,why still error
but my firewall has map inside ip(135.160.2.19) to outside ip(135.160.2.139)
error message :
java.rmi.ConnectException: Connection refused to host: 135.160.2.18; nested exception is:
java.net.ConnectException: Connection timed out: connect
code as follow:
System.setSecurityManager( new RMISecurityManager());
try {
oa = (OaI)Naming.lookup(this.strHostPort);
} catch(NotBoundException eC) {
System.out.println("name is not currently bound!");
} catch(AccessException eC) {
System.out.println("this operation is not permitted !");
} catch(RemoteException eC) {
System.out.println("registry could not be contacted ");
}catch(MalformedURLException eC) {
System.out.println("the name is not an appropriately formatted URL!");
}
catch(Exception ee) {
ee.printStackTrace();
}
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|