Possible Duplicate:
Allowing access to localhost page outside network?

I can visit my site by http://localhost

And I give my friend my ip address like 220.181.6.184,

but they can't browse it by http://220.181.6.184

How to enable this?

link|improve this question
Your web server is likely configured to listen on localhost only. Which web server are you using, on which OS? – diciu Dec 25 '09 at 8:34
i too have the same question, i m using VS 2008, windows server, with router. What port do i need to open for it, is it same port 80 – Shatanu Gupta Dec 25 '09 at 9:04
I have a static ip – Shatanu Gupta Dec 25 '09 at 9:06
Your Cable modem or DSL router have a static IP. You need to take a look at your cable modem or DSL router, and let us know what model / manufacturer it is. Or use PortForward (www.portforward.com), to look up the model, and set port 80 to forward to your computer. – Benjamin Schollnick Dec 25 '09 at 15:58
feedback

migrated from serverfault.com Dec 25 '09 at 10:15

This question came from our site for system administrators and desktop support professionals.

closed as exact duplicate by random Mar 7 at 17:57

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

3 Answers

You need to set up port forwarding to Port 80 in your DSL router (provided a DSL router is running).

link|improve this answer
added comment, plz answer for that too – Shatanu Gupta Dec 25 '09 at 9:13
feedback

If you are behind a router, you will have to forward port 80 to your computer's internal IP address. See this guide: http://www.portforward.com/english/applications/port%5Fforwarding/Apache/Apacheindex.htm

Your question does not really describe your current setup in any detail at all.

link|improve this answer
added comment, plz answer for that too – Shatanu Gupta Dec 25 '09 at 9:13
feedback

You could use Dynamic DNS softwares. Essentially install a software that will contact the server and figure out your local IP, and then provide a internet address to access it. There are many service providers out there, dont really know who is the best. Here is ony I found : http://www.dyndns.com/

link|improve this answer
feedback