• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mount server with Tomcat in a network with a router.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic