Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I make my localhost server be available online? (Apache,PHP) When I try to enter my IP address into the URL bar I get no result.

share|improve this question
1  
This question has quite a wide variety of answers - at the most basic level you should set up port forwarding, and the exact instructions vary by router models. You can refer to this link for port forwarding help: portforward.com/english/routers/port_forwarding Additionally, Apache should be configured to listen to the proper interface (i.e. Listen 0.0.0.0:80) rather than just to 127.0.0.1:80. –  yjwong Dec 26 '13 at 12:57

1 Answer 1

Not sure if this is the problem, but if you're entering your public IP it won't locate your server in the local area network, since that IP is the one from your router, not your server.

Try to open the URL for your local IP, you can find it with ifconfig. If the server works, that means your apache is working fine in the local network, and the problem is in the router configuration (some port forwarding may be needed).

share|improve this answer

Your Answer

 
discard

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.