Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 already installed applications to make my server web server. when I type the DHCP released ip address in the web browser, i can access it but all it says is "it works....etc". I can copy files to /var/www successfuly using WINSCP but yet, i can not see any files when I connect to it using my windows machine in the browser. Secondly , I tried to forward port on my home SMC router, it only accepts local lan ip which my ubuntu server picks up internet ip from router...what should i do ? can you help please ????


share|improve this question
Has anyone really been far even as decided to use even go want to do look more like? – Oct 30 '10 at 9:18
By "can not see any files" you mean it still gives you the "It works" message? – ytg Oct 31 '10 at 15:31

The "It works" message comes from the default index.html in the /var/www directory. You have to edit the html file to create links to the additional files you copied from windows. Or type the exact name of the html file in the browser.

share|improve this answer

It is best to have servers on fixed (static) IP-addresses rather than on dynamically assigned IP-addresses which might change from one day to the next. You can use your router control panel to limit the range of addresses it hands out for DHCP and use an IP-address outside that range for your server.

For example, if your router is at and it hands out DHCP addresses from to, you could use as a fixed address for your server.

Otherwise you can use specify a dynamically assigned IP-address in the forwarding rule. It might stop working one day but will be OK for a while. ifconfig -a will show you your server's current LAN IP-address.

I suggest, if you have not already done so, you read up about the security implications of making your home server accessible to botnets.

share|improve this answer
I thought a web server only works through static-IP addresses? Also, got a link to some place where I can find more info on this? – Muhammad Usman Jan 9 '11 at 7:54
It is sensible to arrange for a static IP-address for a web-server but it is possible to provide web-service on a dynamic IP-address. There are dynamic DNS services that assign a static DNS name to a dynamic IP-address. Google for "Dynamic DNS" and for Apache, IIS, NGINX or just "Web-server". – RedGrittyBrick Jan 9 '11 at 10:47

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.