Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Port Forwarding

 
Yong Boon Lim
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all, l'm no sure whether l'm in the right place Pardon me.

Ok, l try to setup a Tomcat Server in my PC, and it work fine when l access from my PC with http://localhost:8080 and from my friend PC with http://myPC:8080.

l do add the port forwarding rule in my router for any public port 8080 to direct to my PC port 8080. And l've do the open port testing with my route Dynamics IP xxx.xxx.xxx.xxx:8080, and it should that the port is open.

But once l go to my IE and key-in http://xxx.xxx.xxx.xxx:8080, it should that "Internet Explorer cannot display the webpage".

l suspect there is some setting in Tomcat prevent this kind of activities..

Any idea? Many Thanks!!!
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Yong Boon Lim:
Hi, all, l'm no sure whether l'm in the right place Pardon me.

Ok, l try to setup a Tomcat Server in my PC, and it work fine when l access from my PC with http://localhost:8080 and from my friend PC with http://myPC:8080.

l do add the port forwarding rule in my router for any public port 8080 to direct to my PC port 8080. And l've do the open port testing with my route Dynamics IP xxx.xxx.xxx.xxx:8080, and it should that the port is open.

But once l go to my IE and key-in http://xxx.xxx.xxx.xxx:8080, it should that "Internet Explorer cannot display the webpage".

l suspect there is some setting in Tomcat prevent this kind of activities..

Any idea? Many Thanks!!!


As far as I can think of it, the Tomcat runs fine. Why? because when it is accessible through localhost:8080 it should also be accessible through some other machine. I assume it to be more of a networking issue than of Tomcat.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The routers external IP is usually not accessible from the internal network. I am not sure of the specifics but it is probably an issue with routing rules. You would need to get someone from 'outside' to try to access the server, or you could try a free proxy to route yourself back again... maybe.

Also, some ISPs block a range of ports be default so you may need to check with them first.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic