The moose likes Distributed Java and the fly likes rmi thorugh Firewalls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi thorugh Firewalls" Watch "rmi thorugh Firewalls" New topic

rmi thorugh Firewalls

Anil Gunda

Joined: Nov 27, 2000
Posts: 3
I am having an applet client which has to lookup an remote server
object on a server within a firewall.
The firewallport 900 has been given full access.
The server objects are binding to the tnameserver on the same machine.
Even the webserver where my html and applet class file are located also on the same machine .
my client is a IE browser which loads the html file as well as the applet class file successfully.
but the applet gives an exception and the lookup fails
the same code works fine if is run from within firewall
but fails for clients outside the firewall
how can i tunnel through the firewall.
when i bind the object to the tnameserver i am mentioning
java.server.codebase, java.server.hostname,,
but still not working
The firewall is PIX Firewall
http ftp etc are working for port 900( tested)
but rmi-iiop fails
when the webserver on port 80 is being contacted by the applet
why the tnameserver on port 900 is not being able to connect
please help me in this matter.
its very urgent!!!
Todd Bush

Joined: Mar 06, 2000
Posts: 14
I once had many problems getting an Applet to communicate remotely with RMI. One reason, IE does not include the java.rmi.* libraries, so any applet running in IE does not have them available. You are able to download them from Microsoft, but every client who uses your applet must have them. A solution I've used is to have your Applet communicate directly with a servlet and the servlet preforms the RMI calls.
Good Luck.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944

dear anil,
could you please explain me how to set hostname,codebase and setting policy and all.
or atleast send me a mail at
I agree. Here's the link:
subject: rmi thorugh Firewalls
jQuery in Action, 3rd edition