File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mount server with Tomcat in a network with a router.

 
Jose Alvarez
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17616
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jose Alvarez
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17616
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17616
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic