Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi thorugh Firewalls" Watch "rmi thorugh Firewalls" New topic
Author

rmi thorugh Firewalls

Anil Gunda
Greenhorn

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, java.server.security.policy,
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
Greenhorn

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.
Anonymous
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 baal_raj@rediffmail.com
yours
balraj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rmi thorugh Firewalls
 
Similar Threads
access wlserver behind firewall
HF - What goes where question
RMI Server Configuration
problem opening port 900 on mac os x
how to get Clients CPU information on Server using Java RMI