• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

remote access to tomcat webapps

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Sheriff
Posts: 67694
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The browser shows a message "connection time out".
Any idea?
 
Bear Bibeault
Sheriff
Posts: 67694
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 26544
187
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
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: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did it!!! As you said, i had to set up the router's settings.
Thanks a lot
 
reply
    Bookmark Topic Watch Topic
  • New Topic