• Main Menu
  • How to Configure IIS to Host a Web Page


    IIS (Internet Information Services) is an easy to use web server from Microsoft. It is not installed on Windows XP Professional by default. However, it is installed when the user upgrades from Windows NT or Windows 2000 to Windows XP Pro. IIS can be installed as follows:

    1. Click Start, click Control Panel, and double-click Add/Remove Programs. The Add/Remove Programs application starts.
    2. In the left column of the Add/Remove Programs dialog box, click Add/Remove Windows Components.
    3. When the Windows Components Wizard appears, click Next.
    4. In the Windows Components list, select IIS.
    5. Click Next and follow the instructions.
    inetmgr

    inetmgr

    Install in Windows 7:

    1. Click the Start button (or the Windows button) then Control Panel.
    2. Click Programs and Turn Windows features on or off under Programs and Features.
    3. In the list that appears, check Internet Information Services and Internet Information Services Hostable Web Core, click OK, and wait for it to install.

    IIS allows the user to host a web page on his/her own computer that others using the DNS name or the IP address of the PC on the network can access. The IP address can be found by using the command ipconfig in command prompt.

    The IIS is configured with the IIS snap-in, previously called the Internet Services Manager. This can be accessed in one of three ways:

    Method 1:

    1. From the Start menu, select Settings then Control Panel
    2. Open Administrative Tools
    3. Open Internet Information Services

    Method 2:

    1. Right click My Computer on the desktop
    2. Select Manage to open the Computer Management console
    3. Select Internet Information Services under Services and Applications

    Method 3:

    1. From the Start menu, select Run
    2. Type inetmgr and run the command

    The Internet Information Services snap-in provides server management options to control content and access to the Web or FTP sites. For example, if a developer is testing a site before uploading it to an intranet or the Internet, he/she can use this tool to test the settings exactly as they will be on the final server. When the IIS is installed, a default website and FTP site are created. Information can now be published on these default sites by following the steps outlined below:

    To Publish Content on a Web Site

    1. Create a home page for the website with any web page design tool
    2. Name the home page file Default.htm or Default.asp
    3. Copy the home page into the default Web publishing directory for IIS, also called the home directory, located in inetpubwwwroot or inetpub/wwwroot on the main partition (usually C:).
    4. If the network has a name resolution system (typically DNS), then visitors can simply type the user’s computer name in the browser’s address bar to reach user’s site. If the user’s network does not have a name resolution system, visitors must type the computer’s numerical IP address.

    To Publish Content on the FTP Site

    1. Copy or move the files into the default FTP publishing directory. The default directory that Setup provides is inetpubftproot.
    2. If the user’s network has a name resolution system (typically DNS), visitors can type ftp:// then the computer name in their browser’s address bar to reach the user’s site. If the user’s network does not have a name resolution system, visitors must type ftp:// and the computer’s numerical IP address.

    With Windows XP Professional, users can host one website and one FTP site on a single computer. To host multiple web or FTP sites on a single computer, consider upgrading to a server product.

    Got Something To Say:

    Your email address will not be published. Required fields are marked *

    26 comments
    1. deepesh kourav

      16 February, 2016 at 4:56 pm

      My website working local computer( local host ) only but it’s not open in global network please help me for it.

      Reply
    2. natali

      8 August, 2012 at 3:17 pm

      thanks. the information was very helpfull

      Reply
    3. Ricardo

      26 June, 2012 at 11:40 am

      Hi,
      I can´t connect to my website in iis 6.0 and w2003 over the internet. I can connect locally but when i want to access thru the internet it says “The connection has timed out , The server at 201.155.xxx.xxx is taking too long to respond, does any have a good solution for this?
      Does any one knows how to resolve my name my website???

      Reply
    4. nerotox

      27 April, 2012 at 4:35 pm

      Hi. I just want to know how do I host my own website at home I use IIS?

      Reply
    5. Arun

      29 February, 2012 at 10:08 am

      I have a public Ip address purchased from Omantel [ISP]. I made a web application and hosted in my win 2003 server machine by configuring IIS. The aap is working perfect in my intranet with my “server’s name/app” . Please help me to configure the same in internet with my public IP address. My router is linksys WAG120N.

      Reply
      • karan

        13 March, 2012 at 8:20 am

        Can someone help me to send mail using iis .
        The language i am using is php

        Reply
        • ZudoHackz

          8 June, 2013 at 3:55 pm

          Use the mail() function

          Reply
    6. Papa

      14 February, 2012 at 12:36 pm

      Can someone help me with the steps to configure IIS to Link to SQL server express database table and also publish website in ASP

      Reply
    7. chandrakumar

      25 January, 2012 at 5:21 pm

      please explain in a iis server connect in a aspwebsite

      Reply
    8. Sharon Colucci

      1 January, 2012 at 9:06 pm

      I do trust all of the concepts you’ve presented in your post. They’re really convincing and will definitely work. Still, the posts are too brief for beginners. Could you please lengthen them a little from next time? Thanks for the post.

      Reply
    9. Zulfikar

      6 November, 2011 at 1:28 pm

      I have a Server, It’s Operationg System is Microsoft Windows Server 2008 R2. My data base is Microsoft SQL Server 2005. Software developed by C#. I have a LAN in 150 PC. How can I Host My software my server. I can run my software in ord.com in my LAN. Please duidelines me.

      Reply
    10. Abhishek

      16 July, 2011 at 9:24 pm

      i have a domain name, a host- speedhost.in, i just did all this to experiment on how to design a website. i know a bit of html….but a total novice in designing a site and i cant figure out how to even make a html file my homepage. can u please help me out on how to publish my page as homepage because all the files i upload are just being shown as links an d not as a page

      Reply
    11. nikhil

      28 April, 2011 at 11:37 am

      can i host my web site in my computer……

      Reply
      • memenode

        29 April, 2011 at 2:53 am

        Yes, but there are some limitations, and non-techies typically don’t do this. Most home networks are assigned a dynamic IP address which keeps changing so either people who would visit your site have to be frequently given a new address or you have to set up a program that reports your current IP to a DNS server so it can assign it to your domain name. DynDNS dynamic DNS service is what you can use for that. They have a HowTo that explains everything.

        Reply
    12. derp

      10 October, 2010 at 3:13 am

      there is so much more to making this work its ridiculous that this is even on the internet. just an fyi all.

      Reply
    13. Daniel Memenode

      24 September, 2010 at 3:58 pm

      Originally posted by ichiro hang: “Good article, I have published my application in my own server windows server 2008. I am a newbie in system configuration, my server does not in networks. I want to disply my website by address e.g. http://www.abc.com/abc; in such case, should i need to buy domains name from domain name provider (godaddy.com) and put abc.com in the httpbinding (host header)?”

      You should indeed buy a domain name from a provider, but to have the domain name point to your server you need to set up a DNS name server which would resolve your domain name to your IP address. You can set this up on your own computer (I found a guide for that here) or use a DNS service. Godaddy has a free one, as does Namecheap. There are also third parties like EveryDNS and EasyDNS. If your IP address is dynamic you can use DynDNS.

      Reply
    14. ichiro hang

      24 September, 2010 at 4:46 am

      Good article, I have published my application in my own server windows server 2008. I am a newbie in system configuration, my server does not in networks. I want to disply my website by address e.g. http://www.abc.com/abc; in such case, should i need to buy domains name from domain name provider (godaddy.com) and put abc.com in the httpbinding (host header)?

      Reply
    15. Daniel Memenode

      5 August, 2010 at 3:54 am

      I think what you need is to set up port forwarding in your router. Forward the port “80” to your 192.168.1.2 local IP and its own port 80. This way when you visit your real internet IP in your web browser (which goes to the default HTTP port, which is “80”) it should call that exact local IP.

      It should be called “port forwarding” in your router. On mine it is under advanced settings and “address translation (NAT)” settings. You can probably find exact instructions for how to do port forwarding on your router. Just enter your router name and model in google and then put in “port forwarding”.

      Reply
    16. gowad

      4 August, 2010 at 5:16 am

      I need some help. I have a home network. I use router to connect my computers and share the Internet connection. I have a real IP-address. Inside of my home network I have a few computers with Windows 7 Ultimate. These computers have local network IP-addresses (ex.: 192.168.1.2, 192.168.1.3) which are different from my real IP-address on Internet. I want to publish my website on Internet. The content and files of my website are on the computer 192.168.1.2. Could you be so kind to explain step-by-step what I have to do after the installation of IIS to publish my website on Internet?

      Reply
    17. alizade

      26 July, 2010 at 5:08 am

      it was good and useful .

      Reply
    18. Daniel Memenode

      21 July, 2010 at 4:25 pm

      Originally posted by more nlitened: “These instructions seem easy.
      However, I have just a question or two.
      In, “To Publish Content on your Website”, you wrote, “If your network has a name resolution system (typically DNS), then visitors can simply type your computer name in the address bar of their browsers to reach your site.”
      Is my “computer name” my URL?”

      Yes, it’s the hostname of the computer. Which exactly it is depends on what’s been set. I think you can always access the local web server with a “localhost” hostname (that is, typing in http://localhost), though others wouldn’t be able to access it that way. For that you’d need a domain name pointed towards your IP address. You can read about hostnames here and here.

      Reply
    19. James123

      21 July, 2010 at 1:18 pm

      Whether we need to register website before doing above things?

      Reply
    20. more nlitened

      14 July, 2010 at 2:16 pm

      Originally posted by tauseef31: “I have hardly made much sense of it but I’ll try to experiment and will update any success.

      🙂 Try Try Try….”
      Wanna collaborate on configuring IIS with me?
      Have you SEEN all of the config options for IIS?
      “Two heads are better than one…”

      Reply
    21. more nlitened

      14 July, 2010 at 2:14 pm

      These instructions seem easy.
      However, I have just a question or two.
      In, “To Publish Content on your Website”, you wrote, “If your network has a name resolution system (typically DNS), then visitors can simply type your computer name in the address bar of their browsers to reach your site.”
      Is my “computer name” my URL?

      Reply
      • swapnil

        12 February, 2011 at 4:43 am

        in ur addressbar type “localhost”

        Reply
    22. tauseef

      12 July, 2010 at 8:44 am

      I have hardly made much sense of it but I’ll try to experiment and will update any success.

      🙂 Try Try Try….

      Reply
    Microsoft IIS
    158 queries in 0.538 seconds.