« Previous Next »

Answered Thread: How to configure the website on IIS 7 accessible to the whole world

Last post 10-19-2009 9:38 AM by bsxiong. 13 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (14 items)

Sort Posts:

  • 10-10-2009, 1:33 AM

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    How to configure the website on IIS 7 accessible to the whole world

    Hello Everyone

    I want to host my small family website on my local computer which can be access to the general public. I have created Virtual Directory under the Default Website by the name myPersonalSite. I can access this from other computers on my local network (http://mymachinename/mypersonalsite/default.aspx). but where as if i change the mymachinename with my live ip address. It gives 404 error of Page not found.

    I have done all the configuration settings in the linksys router of port forwarding redirecting the port 80 requests on my local server and have also disabled the firewall.

    What extra needs to be done at IIS level so that this site can be accessible via outside world.

    I am using windows Vista Business Edition which is having the static ip (192.168.1.101)

    Any sort of help to make this work will be highly appreciated.

    Thanks

  • 10-10-2009, 1:59 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: How to configure the website on IIS 7 accessible to the whole world

    192.168.1.101 is an IPv4 internal IP address for Intranet usage. To publish a web site to the whole world, you need a public IP address and that must be assigned to you via Internet service provider or web hosting service provider, generally speaking, to bind your domain name to it. There are some other service providers who can set up a domain name and even work with dynamic IP address for you, but I never consider that as a recommended approach.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-10-2009, 2:16 AM In reply to

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    Re: How to configure the website on IIS 7 accessible to the whole world

    Thanks for your response.

    I am trying to access the site from the IP address given by my isp (59.95.....) which is i belive public ip and not internal ip.

    The 192.168 ip is binded to my local machine

    I hope you would have understood my question now.

    Do let me know if you require any further clarifications.

    Thanks

  • 10-10-2009, 2:20 AM In reply to

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    Re: How to configure the website on IIS 7 accessible to the whole world

    Thanks for your reply.

    I am trying to access the site via public ip only that is provided by my ISP (59.95....)

    While accessing this I am getting page not found error.

    The 192.168.1.101 is my local static ip.

    I hope I have made myself clear.

    Do let me know if you require any further clarifications.

    Thanks

     

  • 10-10-2009, 3:50 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: How to configure the website on IIS 7 accessible to the whole world

    So your ISP confirms that this IP address will be static for you? That's only part of the whole process. I am not sure of how you configure the router, and your local network, so it is really hard to tell what happens when you type "59.95.*.*" in IE address bar. You may first test if iisstart.htm page works for default web site, and then move on to other parts.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-10-2009, 5:00 AM In reply to

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    Re: How to configure the website on IIS 7 accessible to the whole world

    Thanks once again for ur reply.

    I assume everything ok from the router and isp side, as I am getting 404 error of Page not found.

    I believe this error comes when the files are not found on the webserver

    I am not getting any error relevant to dns.

    Can i get some log on iis that whether  what is happeneing when there is incoming request to it , probably that can help to trouble shoot.

    Thanks

  • 10-10-2009, 6:20 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: How to configure the website on IIS 7 accessible to the whole world

    Well, using Microsoft Network Monitor may help as if it runs on both the client (IE) and the server (IIS), it can tell where the 404 comes. IIS logs can also help because it can tell you exactly what 404.* you received.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-10-2009, 6:40 AM In reply to

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    Re: How to configure the website on IIS 7 accessible to the whole world

    Is this tool needs to be downloaded or it is built into windows vista ?, if so where can i find it.

    Also please provide the path from where can I access the log files.

    Thanks

     

  • 10-10-2009, 6:45 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: How to configure the website on IIS 7 accessible to the whole world

    You can learn about IIS 7 logs from here (http://support.microsoft.com/kb/943891). Microsoft Network Monitor is available here (http://www.microsoft.com/downloads/details.aspx?FamilyID=983b941d-06cb-4658-b7f6-3088333d062f&displaylang=en), though it is not an easy tool to learn in a short time.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-12-2009, 3:51 AM In reply to

    • maqinfo
    • Not Ranked
    • Joined on 10-25-2008, 9:05 AM
    • Posts 6

    Re: How to configure the website on IIS 7 accessible to the whole world

    I am completly lost now, I cannot even access the site now  from the other computers on my network also. It only works on the local computer.

    It is vierd infact. I did the same setup on Windows 2003 server with IIS 6. It work like a charm without any configuration. I can access the site on my network as well as it is publically available. I still dont know is it problem of Windows Vista or IIS 7 ? God and Microsoft knows the best :).

    I would still like to host the site on IIS 7 as in future would upgrade to Windows server 2008.

    Guys please help. ...

    Thanks

     

  • 10-12-2009, 5:05 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: How to configure the website on IIS 7 accessible to the whole world

    What changes you have performed recently? I suggest you open a support case via http://support.microsoft.com. Or simply grab a network expert locally and let him/her pay you a visit.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-14-2009, 6:50 PM In reply to

    • Rob Bynum
    • Not Ranked
    • Joined on 10-14-2009, 10:37 PM
    • Posts 1

    Answered Re: How to configure the website on IIS 7 accessible to the whole world

    This is totally easy and you are almost there!

    Couple items need to be addressed to publish your website.

    1. Get the website working correctly on your LAN.
      1. You stated so you did by going to 192.168.1.101.  Great!
    2. Obtain a public IP address that gets the world to your internet 'doorstep'.
      1. You stated your ISP has provided you with that information (59.95....). Great!
    3. Now  all you need to do is NAT the the public IP address your ISP gave to you to the IP address you have assigned your webserver.
      So basically your DSL modem takes http (port 80) traffic is received that was headed for 59.95.x.x and sends it on to 192.168.1.102

      There are a variaty of ways doing this. Probably the easiest is to log into your DSL modem and look for things like Port Forwarding. In that section you will tell the DSL modem to forward any requests on port 80 to 192.168.1.102.

    HTH.

  • 10-19-2009, 9:37 AM In reply to

    • bsxiong
    • Not Ranked
    • Joined on 10-19-2009, 9:28 AM
    • Posts 2

    Re: How to configure the website on IIS 7 accessible to the whole world

     Here is the step that i took.

    1. go to http://cmyip.com  - You will need to type in this ip in the url to see your website

    2. go to your router and port forward your webserver's local machine dynamic ip (192.168.1.x). Go and run cmd. Then type in "ipconfig". 

    3. go to your IIS manager

    4. at your default webserver, right click and make it run. 

    5. make sure that the directory is pointed at c:\inetpub\wwwroot

     

    hope this helps. FYI: i'm running server 2008 but it wouldn't make much difference.

  • 10-19-2009, 9:38 AM In reply to

    • bsxiong
    • Not Ranked
    • Joined on 10-19-2009, 9:28 AM
    • Posts 2

    Re: How to configure the website on IIS 7 accessible to the whole world

     I forgot to mention that you don't need to turn firewall off completely. But make sure that you have an exception on by opening the port 80

Page 1 of 1 (14 items)
Microsoft Communities