Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Sep 16 '09 at 5:30

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

4 Answers 4

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 dyndns.org service. This will allow your machine to have a user-readable domain name (xxx.dyndns.org) 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

 
discard

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