File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Mount server with Tomcat in a network with a router. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Mount server with Tomcat in a network with a router." Watch "Mount server with Tomcat in a network with a router." New topic
Author

Mount server with Tomcat in a network with a router.

Jose Alvarez
Greenhorn

Joined: Jan 23, 2012
Posts: 11
First of all, I'm not english so excuse me for the expressions.

I have a LAN with a static IP in each PC. I provides internet to this LAN with a Huawei MT882 modem. This modem it's connected to the router. The router is a Linksys WRT54G with a DD-WRT firmware.

In the machine which I try to mount the server, I installed JAVA SE and Tomcat 7.0, when I execute Tomcat, I can access to the Configuration Panel of this typing http://localhost:8080. Then, when I try to do this from another PC of the LAN, I type in the navigator http://<Private IP>:8080 and works correctly, I see the Configuration Panel.

But when I try to enter from another PC which isn't in the LAN, I type http://<Public IP>:8080 or http://<Public IP> but not works. In my router, I do Port Forwarding to the 8080 port puting the IP of the server, and I put the IP of the server in the DMZ section of the router, enabling this, but nothing.

What can I do?

Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Welcome to the JavaRanch, Jose! I'm not English, either!

It sounds like you've done most of what is necessary, except that you probably need to open up a firewall port for traffic coming into the router from outside. Since you're doing port forwarding, that would be ports 80 and 443, although for testing, port 8080 could be enabled as well.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jose Alvarez
Greenhorn

Joined: Jan 23, 2012
Posts: 11
Tim Holloway wrote:Welcome to the JavaRanch, Jose! I'm not English, either!

It sounds like you've done most of what is necessary, except that you probably need to open up a firewall port for traffic coming into the router from outside. Since you're doing port forwarding, that would be ports 80 and 443, although for testing, port 8080 could be enabled as well.


Thanks for your reply.

How can I open the port mentioned? For testing, I disabled the firewall in the server.

I opened the ports you mentioned (80, 443 and 8080) in the Port Forwarding section of the router, but the result is the same, I can't view the web from outside the LAN.

Need I open the ports also in the modem? May be that the problem?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Jose Juan wrote:
Tim Holloway wrote:
Need I open the ports also in the modem? May be that the problem?


Almost certainly. Since other machines on the LAN have no problem, that leaves the router.
Jose Alvarez
Greenhorn

Joined: Jan 23, 2012
Posts: 11
Tim Holloway wrote:
Jose Juan wrote:
Tim Holloway wrote:
Need I open the ports also in the modem? May be that the problem?


Almost certainly. Since other machines on the LAN have no problem, that leaves the router.


Ok, what ports I need to open? Because I tomorrow call to the ISP and request to open the ports.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Ports 80 and 443 are usually all you need.

I was thinking of opening the firewall that's inside the router itself, but if your ISP is blocking those ports, then they'll need to provide access as well.
Jose Alvarez
Greenhorn

Joined: Jan 23, 2012
Posts: 11
I solve this calling to my ISP. They tell me what the public IP is not really public, then they change my configuration and now I have a public and fixed IP and all works correctly.

Thanks of all.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mount server with Tomcat in a network with a router.