Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmi thorugh Firewalls

 
Anil Gunda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic