| Author |
remote access to tomcat webapps
|
nick tomer
Greenhorn
Joined: Oct 18, 2010
Posts: 22
|
|
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
Joined: Jan 10, 2002
Posts: 56207
|
|
What happened when you tried it?
(P.S. Questions in English terminate with a single ?. Not three.)
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
nick tomer
Greenhorn
Joined: Oct 18, 2010
Posts: 22
|
|
The browser shows a message "connection time out".
Any idea?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56207
|
|
|
Have you tired any troubleshooting at all? For example, can you bring up the Tomcat example root application?
|
 |
nick tomer
Greenhorn
Joined: Oct 18, 2010
Posts: 22
|
|
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
Joined: Jun 25, 2001
Posts: 14491
|
|
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.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
nick tomer
Greenhorn
Joined: Oct 18, 2010
Posts: 22
|
|
I did it!!! As you said, i had to set up the router's settings.
Thanks a lot
|
 |
 |
|
|
subject: remote access to tomcat webapps
|
|
|