Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.