Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

share|improve this question
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 Jun 18 '13 at 3:32
possible duplicate of port forwarding? Look at the accepted answer – Keltari Jun 18 '13 at 3:35
@Keltari I have done port forwarding and checked it with The site is saying "Success: I can see your service on on port (80) Your ISP is not blocking port 80". But still I am redirected to Modem's login page when I enter – Ajay Sainy Jun 18 '13 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. – Daniel Andersson Jun 18 '13 at 6:11

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 (

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.