Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'm new to Ubuntu server, which I have install (10.04). My server is connected to my Belkin router, which in turn is connected to my CISCO Linksys SPA2102 VOIP phone adapter/router. I can asscess my webpages on my server (Apache2 installed) thru my home network. But, I can not access the webpages from the internet outside of my home. I need simple step by step instructions to help me. I have install most required software (openSSH, php5, MySql, and WinSCP).

share|improve this question
You are using your WAN IP, right, and not your LAN IP that you use from your home network? Other than that, you just need to tell the router to open the ports that you need for the home servers. – Marty Fried Apr 1 '12 at 17:35

This is a basic suggestion but you need to forward 80th port to your server:

share|improve this answer
This is exactly what @docmax51 needs but it would be useful to know that forwarding the port 80 may not result into gaining access to the server but the router itself even with the ports mapped and assigned to the proper IP address (of the server), in which case the remap of the 8080 port may do the trick. – Geppettvs D'Constanzo Nov 10 '11 at 23:37
Yes, with 80th port forwarded he/she can't (maybe) reach the sites from internal network. 8080 is a good trick, or checking via tunnels can do the job. – heartsmagic Nov 10 '11 at 23:42

This is not really related to Ubuntu, but to your network. You may have heard that the internet is running out of IP-addresses. This is true for IPv4, which almost all internet service providers use. In order to pretend that there is no problem, they've come up with a technique called Network Address Translation, or NAT for short. What this does, is that it presents you with one public IP-address and then gives you a set of private IP-addresses in your network.

An IP address has a set of ports that are used for services. For instance, web servers use port 80 by default. Since that port belongs to the IP, and the IP belongs to your router, you'll have to configure the router to forward all incoming connections on that port to another IP in your network. This also means that you can't have two web servers using the default port in your network.

I don't know any specifics about those routers of yours, but it is likely that both of them use NAT. In that case, you'll have to forward ports in the first router to the second router, and from the second router to the IP of the computer you wish to use as a server.

This is far beyond the scope of this site. If you can connect and use the services from within your network, then your Ubuntu is fine.

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.