IntelliJ Java IDE
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
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 12513

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.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
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: 12513

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: 12513

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.
 
IntelliJ Java IDE
 
subject: Mount server with Tomcat in a network with a router.
 
Threads others viewed
Tomcat Port Forwarding
Dynamic IP address and socket programming.
JMF Audioconference with PC in a LAN
Setup website at home
Problem accessing Tomcat from outside my LAN !
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture