Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are using Apache Tomcat, then by default, applications deployed to it are accessible on port 8080.</p> <p>So <strong>IF</strong> you have already deployed your app to Tomcat in a proper way, <strong>AND</strong> you have started the Tomcat server, then you can access your application (website) like this: </p> <pre><code>http://localhost:8080/Your_App_Name/index.jsp </code></pre> <p>Instead of <strong>localhost</strong>, you can use 127.0.0.1, or your private IP address 192.168.0.120 like this</p> <pre><code>http://192.168.0.120:8080/Your_App_Name/index.jsp </code></pre> <p>Instead of <i>Your_App_Name</i> use the name of your deployed application (application context), and <em>index.jsp</em> is here as an example.</p> <p><strong>IF</strong> all your friends are on the same <em>LAN</em> (<a href="https://en.wikipedia.org/wiki/Local_area_network" rel="nofollow noreferrer">Local Area Network</a>) as you are (and you say they are), the they can access your web application using the above URL.</p> <pre><code>http://192.168.0.120:8080/Your_App_Name/some_path/some_file.jsp </code></pre> <p><strong>IF</strong> they are outside your LAN, then you have to configure port forwarding on your router. And to do that, of course, you need to have access to it. Then they will be able to access your web app using your public IP and the port as it was configured while setting port forwarding.</p> <p>Here is very good article with pictures: </p> <ul> <li><a href="http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/" rel="nofollow noreferrer"><em>How To Forward Ports on Your Router</em></a></li> </ul> <p><br> By the way, if you have properly installed Apache Tomcat and started it, then you should be able to access it like this: </p> <pre><code>http://localhost:8080 </code></pre> <hr> <p><strong>Useful resources</strong> </p> <ul> <li>Apache Tomcat <a href="http://tomcat.apache.org/tomcat-7.0-doc/index.html" rel="nofollow noreferrer">documentation</a></li> <li><a href="http://courses.coreservlets.com/Course-Materials/csajsp2.html" rel="nofollow noreferrer">Beginning &amp; Intermediate Servlet &amp; JSP Tutorials</a></li> <li><a href="https://www6.software.ibm.com/developerworks/education/j-tomcat/j-tomcat-a4.pdf" rel="nofollow noreferrer">Tomcat for beginning Web developers</a> (PDF file)</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload