PDA

View Full Version : Servlets do not run outside of my LAN



thisObject
7th May 2006, 07:38 AM
Hello,

I have a server up and running (Tomcat).
I can access my page like this: http://www.mydomain.net

I can run my servlet like this for example:
http://localhost:8080/WEB/MyServlet It works fine. and like this
http://www.mydomain.net:8080/WEB/MyServlet (from server machine)

If i do this http://www.mydomain.net:8080/WEB/MyServlet from outside of my LAN the browser would hang for some time and then I get an error message: COULD NOT CONNECT TO THE SERVER WWW.MYDOMAIN.NET

OS: Fedora Core 5
Server: Tomcat
DNS: www.dyndns.com

Have I forgotten to do some configuration or there is something else?

thank you.

thisObject
7th May 2006, 07:49 AM
Forgot to mention that I have the following ports forwarded 80 and 443
Tomcat works together with Apache using mod_jk2 connector.

in this case do I have to forward port 8080 as well?

Thanks

thisObject
7th May 2006, 07:48 PM
Hello,
I just opened 8080 port and now I cant access my site from outside of my LAN at all.
I read somewhere that I need to open port 8080 the firewall, right? If so how can this be done?

Thank you.

thisObject
7th May 2006, 08:49 PM
I opened port 8080 and now I am able to see the site outside of my LAN but servlets do not run I get COULD NOT CONNECT error message

thanks

thisObject
8th May 2006, 01:55 AM
I have some dynamic behavior in jsp pages such as invoke some jstl tags on click and stuff like that. As soon as action is triggered the site hangs but on initial load it is fine.

So the problem is that I cannot invoke any action.

Omega Blue
8th May 2006, 09:43 AM
Is it only a problem with your JSP pages or do you have problems with other pages as well?

thisObject
8th May 2006, 03:31 PM
Hello,

yes there are other problems as well such as regular html pages can only be viewed in FireFox but IE cannot view them - it displays blank page.

JSP pages run fine on load but if I call a servlet it jus does not work.

Could you let me know how to call a servlet form my html form?
I had action="http://localhost:808/WEB/LetThemKnow"
Assume I have: www.myDomain.net
How is it going to look like?

Thanks