aspose file tools*
The moose likes Tomcat and the fly likes remote access to tomcat webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "remote access to tomcat webapps" Watch "remote access to tomcat webapps" New topic
Author

remote access to tomcat webapps

nick tomer
Greenhorn

Joined: Oct 18, 2010
Posts: 26
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: 60053
    
  65

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.)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
nick tomer
Greenhorn

Joined: Oct 18, 2010
Posts: 26
The browser shows a message "connection time out".
Any idea?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

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: 26
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: 15641
    
  15

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: 26
I did it!!! As you said, i had to set up the router's settings.
Thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: remote access to tomcat webapps
 
Similar Threads
Doubt about WEB-INF
Directory Structure for JSP
complete newbie can't set up jsp environment.
How to access a JSP page.
How to run JSP file in tomcat server