0

I am trying to learn to host website on home pc. For this I have installed apache tomcat.

I have also done port forwarding in my modem. I checked it with http://www.canyouseeme.org/.

When I am writing localhost in the address bar of chrome I am getting the page showing "If you are seeing this page means you apache is running" .

But the problem is that when I enter 117.xxx.xxx.xxx (my ip) then it opens the modem's home page(login).

I want that I can give my ip-address to my friend so that he can see the website hosted at my computer. But when he goes to http://117.xxx.xxx.xxx he gets the error page not found. What should I do so that my friend can see the website hosted at my computer. Please help.

4
  • Port forwarding is the answer. However, this will be a duplicate. There are a lot of answers on the website for port forwarding. Trying to find the most applicable one.
    – Keltari
    Commented Jun 18, 2013 at 3:32
  • possible duplicate of port forwarding? Look at the accepted answer
    – Keltari
    Commented Jun 18, 2013 at 3:35
  • @Keltari I have done port forwarding and checked it with canyouseeme.org. The site is saying "Success: I can see your service on 117.xxx.xxx.xxx on port (80) Your ISP is not blocking port 80". But still I am redirected to Modem's login page when I enter 117.xxx.xxx.xxx
    – Ajay Sainy
    Commented Jun 18, 2013 at 3:47
  • @AjaySainy: You will get redirected to the modem from within the LAN. Port forwarding concerns external calls. If the port forwarding is working, and your web server is set up, then your friend should be able to contact it. View your web server logs and see why it doesn't work when your friend tries to connect. Commented Jun 18, 2013 at 6:11

1 Answer 1

0

If you don't mind me asking, is there a reason why you are using Apache Tomcat to host a website? Tomcat is an web application server which requires in depth knowledge to correctly configure. In your case, you need to configure Tomcat to listen to your IP in your server.xml file and restart Tomcat.

If you are not planning to write Java Servlet or JSP pages, and would just be doing HTML/PHP, then you should use really use Apache (http://httpd.apache.org/).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .