Hi,
I have a test box on my LAN.
The internet connexion is shared by a router (linksys box)

I test my application locally thourgh "http://localhost";.
But when testing, my application displays:
  RemoteException occurred in server thread; nested exception is:
  java.rmi.AccessException: Registry.Registry.bind disallowed; origin
  /<public_ip_adress> is non-local host

"rmiregistry" is just launched and it runs on 1099

The router already NATs to the test box

I found this:
http://www.coderanch.com/t/209942/Distributed-Java/java/RMI-app-behind-NAT-firewall

I use ubuntu packaged Tomcat 6.

I already hacked /etc/default/tomcat6
[...]
JAVA_OPTS="-Djava.awt.headless=true -Xmx512M \
           -Djava.rmi.server.hostname=<public_ip_adress>"
TOMCAT6_SECURITY=no
[...]

No more way?

--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to