Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

remote access to tomcat webapps

 
nick tomer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Is there a way to have a tomcat server installed on a computer and we access the web apps from another computer over internet.

For example i have a file called "hello.jsp" in the webapps folder and i can run from the url http://localhost:8080/hello.jsp. If the IP of the localhost is 45.36.54.25

can i go to another computer and run the hello.jsp with the url http://45.36.54.25:8080/hello.jsp ???
How can i do this???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nick tomer wrote:can i go to another computer and run the hello.jsp with the url http://45.36.54.25:8080/hello.jsp ???


What happened when you tried it?

(P.S. Questions in English terminate with a single ?. Not three.)
 
nick tomer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser shows a message "connection time out".
Any idea?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tired any troubleshooting at all? For example, can you bring up the Tomcat example root application?
 
nick tomer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to run http://localhost:8080 to see if the root page runs, but nothing. The same error. Connection time out.
Shouldn't i someway configure tomcat to be visible to the internet?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you can access a URL on a computer but can't access it on another computer, it's almost always one of 2 reasons:

1. The address you're using to access the computer from isn't resolvable. Meaning you need some sort of DNS service to translate the URL's domain/host address to an IP address. If you're using the actual IP address, this isn't an issue.

2. You have a firewall blocking the port(s) you need. The firewall may be in the computer you're accessing or in a router or other device that stands between your client and the target system.

You CAN also have a problem if there's no actual network path from the one computer to the other, but that's less common. You can use "ping" to test for that, assuming that the target doesn't have ping response disabled.
 
nick tomer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it!!! As you said, i had to set up the router's settings.
Thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic