Server Fault is a question and answer site for system and network administrators. 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 don't have a domain name.

And I browse my site by "http://localhost"

How to enable visit my site by guys not in LAN?

share|improve this question

migrated from Sep 16 '09 at 5:30

This question came from our site for professional and enthusiast programmers.

Step 1: If you don't want to purchase a domain use a free service such as NoIP or DynDNS. If you can purchase a domain, you can use the free service EveryDNS to link up your IP address (I will assume it is dynamic) with a hostname on your domain.

Step 2: Forward the port at your router to your machine (server). If you want web access, forward port 80 to the IP address your local machine is on (you will have to check the network settings, and also be sure that this IP address doesn't change). But, be forewarned that some ISPs block port 80 as running a web server on a residential connection is a violation of their Terms of Service.

Note that running a server bypasses your firewall and allows outside folks (and hackers) possible access to your machine. Do not choose to do this lightly, and make sure your software and web server are constantly updated with the latest security patches.

share|improve this answer

You should give out your IP address to your clients. Then they can access ypur site using URL: http://x.x.x.x, x.x.x.x is your IP.

share|improve this answer

Alternatively, you can sign up to a dynamic DNS service provider such as service. This will allow your machine to have a user-readable domain name ( that you can give to people outside your LAN.

Then, you need to ensure that your Internet gateway/router/firewall is configured to forward port 80 (http) port connections into your web-server machine.

share|improve this answer

What type of IP do you have? Static or dynamic? If you want to allow access from the internet, you will have to forward the particular port (example 80) from your router to the computer that hosts the website.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.