Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-07-2008, 07:38 AM   #1
LQ Newbie
Registered: May 2007
Location: Kathmandu, Nepal
Distribution: Ubuntu 8.04
Posts: 10

Rep: Reputation: 0
Question configure server use a static IP address

I have a static IP address. when i try to connect to the static IP address , my router responds.

I want to setup the static IP address for my new pc that uses ubuntu 8.10 Desktop edition. So whenever I request for HTML Pages from the outside world, My Linux Desktop should answer the request.
I have already setup my apache HTTP Server (MySQL, PHP all are set): I can get the HTML Pages locally.

I don't know what packages are used for the above configuration.

I am relatively new to linux, I know basic shell scripting.
Please help me.

Thanks for the help.
Old 11-08-2008, 12:43 AM   #2
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
You don't need any extra packages for the above configuration - all you need is to set up your network correctly:

1) set up your desktop with static ip address - since you're using Ubuntu NetworkManager is in charge of your networking. Either disable it and configure /etc/network/interfaces and /etc/resolv.conf OR go to Networks in System Administration, choose your interface and specify static ip address there.

Alternative way to the above is to continue using DHCP on your desktop but to set up your router to reserve a permanent ip address for the desktop based on the MAC address of the interface you're using.

2) Set up your router to route all the incoming traffic from outside world to port 80 to the ip address of your desktop. (Add other ports your Apache is using as appropriate)

3) If you have a firewall on your desktop (iptables or something else), ensure it's letting through traffic to port 80.

Old 11-08-2008, 12:52 AM   #3
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Old 11-08-2008, 11:42 PM   #4
LQ Newbie
Registered: May 2007
Location: Kathmandu, Nepal
Distribution: Ubuntu 8.04
Posts: 10

Original Poster
Rep: Reputation: 0
thank you,
I have configured as you said. When i pinged then I get the result , but when i try to connect through the browser , i get no responses.
Now i am trying the second method: configuring the router to forward incoming traffic to my server.



ip, static

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I assign a static IP address to a DHCP server? Cyberman Linux - Networking 6 01-29-2010 03:47 PM
HOWto determine DNS server numbers for creating static IP address? (req 4 Azureus) WildDrake! Linux - Newbie 2 04-18-2008 03:15 PM
Using Apache server with non-static IP address issue coldbeer Linux - Server 2 07-06-2007 08:09 AM
Static IP Address with DHCP server control taylortbb Linux - Networking 1 06-28-2005 01:43 PM
Verizon aDSL setup with static IP address RH9 server costasm Linux - Networking 1 10-16-2003 02:19 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration