Hi, I've been doing lots of googling about building a webserver using ubuntu server 9.10 but I got notthing. I mean, a lot of info I read was helpful but it does not work under my circumstances at all. So I want some help from Ununtu geeks. Just reminder I have'nt grasped the concepts of the web server and I am new to ubuntu and I hardly know the linux coomand!

My question is "HOW TO BUILD A WEB SERVER ACCESSED BY ANYONE FROM OUTSIDE USING UBUNTU 9.10".
I have purchased a domain (lets say "") and I have a desktop with Ubuntu server 9.10 installed and from here, I am totally stuck.

As far as I know I need to make the IP static and have to change DNS, as well as firewall settings for my router etc. Could anyone tell me how to do this step by step please?

Post script) if possible, please instruct me in a great detail. I mean someone explained on how to set a static IP as following:
auto eth0
iface eth0 inet static
address
netmask
network
broadcast
gateway

But I have no idea what the addresses are from. Is that what you made up or this is according to my IP and Internet connection setting?

Thanks in advance.

Dani AI

Generated

Quick practical roadmap (builds on and ): you need a running web server (Apache), a stable way for the outside world to reach your router’s public IP (static public IP or Dynamic DNS), a fixed local IP for the Ubuntu machine (DHCP reservation or a local static), and a router rule that forwards HTTP/HTTPS to that local IP. Strong caution: Ubuntu 9.10 (Karmic) is long past end‑of‑life — hosting an Internet‑facing service on an unsupported OS is risky; upgrade to a supported release first. (see the Ubuntu release history). (Ubuntu release history).

Where those addresses come from and a safer approach: the address, netmask, gateway values in your example are taken from your LAN design — the gateway is your router’s LAN IP and the netmask describes the subnet. Instead of hard‑coding on the server (which can cause conflicts), create a DHCP reservation in your router for the server’s MAC address or pick a fixed address outside the router’s DHCP pool. After that, install and verify Apache with the standard packages — Ubuntu’s server docs show the current procedure. (Install Apache on Ubuntu).

DNS and testing: if your ISP gives you a static public IP, point your domain’s A record to that IP. If it’s dynamic, use a Dynamic DNS provider (they offer update clients or router integration) and either point your registrar’s A/CNAME records to that hostname or use the provider as your DNS. To see your current public IP from the server use a simple check (for example curl ifconfig.me). (No‑IP DDNS guide) (get public IP).

Common roadblocks and tests: ISPs sometimes block port 80 or use carrier‑grade NAT (so inbound connections won’t reach you). If port checks fail from outside, verify router port forwarding and firewall rules, check whether your ISP uses CGNAT, or consider alternatives (request a public/static IP, use a VPS as reverse proxy, or a tunnel service). For step‑by‑step router/port guidance see a port‑forwarding how‑to. (Port forwarding basics) (CGNAT explanation).

Quick commands to try (on a modern Ubuntu):

sudo apt update && sudo apt install apache2
curl ifconfig.me

Hi Dear,
I am also a beginner in Linux/Open Source/Ubuntu.
As per my understanding:-
Web server means you would host web pages on the server and the server must respond when you type its name or IP address in a web browser.
Default web page on Ubuntu Server is in /var/www/ folder. Default web page is index.html
Assume that IP address of your web server is
If your server has been installed correctly and you type in the web browser then this page would respond something like this:-

"It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet."

You may now modify contents of default web page /var/www/index.html or you may replace the page as such but the name must remain as index.html.

Col SC Sood(Retd)
professor

First off check your hardware. Do you have a router?

What kind of inet connection do you have? Is it cable or DSL. Cable you have a static IP which means it never changes even if your cable modem reboots. DSL means everytime your modem reboots or has to relogin using PPPoE that your IP changes - this makes it much more tricky to keep your domain name pointed to the right IP

You can use a service like ZoneEdit thats free to register your domain name on a DNS server. This means that Zoneedit can be used to keep 's IP current and up to date. You can get your external IP by visiting a website like whatsmyip - google it.

If you have a modem between you and the outside world you may have a problem forwarding port 80, the standard HTTP port, from the internet side of things to your local machine. you can try to hit in your browser and see what comes up. If you're lucky there might be a config option to use port forwarding.

If you have a router many more options open up for you as you can usually set your modem to bridge mode and use your router to do the port forwarding. If you have a linksys and certain other types of routers you should look into DDWRT. Google DDWRT Compatibility List to make sure your router is on the list. Do this at your own risk. Any newer router should be able to port forward HTTP requests anyhow.

So you would point to your external IP address obtained by visiting whatsmyip site. Then update zoneedit to point to that IP. Then you need to port forward the HTTP port (usually 80) to your Ubuntu machine,

As long as your local machine has a webserver running you should now be able to hit your website from the internet side of things. I would suggest installing APACHE. If you want other features available to you I would suggest using the package manager and installing the LAMP component.

Good luck!
Bill

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.