Previous Next

Thread: What are the rules for port numbers for IIS use?

Last post 07-01-2008 10:52 PM by qbernard. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 06-26-2008, 9:28 AM

    • alanterrill
    • Not Ranked
    • Joined on 04-23-2008, 3:13 PM
    • Posts 5
    • alanterrill

    What are the rules for port numbers for IIS use?

     I've got an IIS site already working on my server, (windows 2003), but I want to add a second one for WSUS. The first one uses TCP port 80 and SSL port 443. What numbers can I allocate to my second site -can I just use 81 and 444 or are there some rules as to what I may or may not use? Also is there a tool that enables me to see what ports are in use?

  • 06-26-2008, 11:44 AM In reply to

    Re: What are the rules for port numbers for IIS use?

    Hello,

    You could use the same server, but to add second IP address for the WSUS by example.

    You could see the ports typing in command prompt "netstat -a".

    Regards

  • 06-26-2008, 11:52 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,538
    • IIS MVPs
    • tomkmvp

    Re: What are the rules for port numbers for IIS use?

    You can add any port number not in use.  Alternatively, use a second IP (if you have one) or use host headers on your sites (if you can add host names in DNS).

  • 06-30-2008, 4:32 AM In reply to

    • alanterrill
    • Not Ranked
    • Joined on 04-23-2008, 3:13 PM
    • Posts 5
    • alanterrill

    Re: What are the rules for port numbers for IIS use?

     Thanks to you both, but I'm not there yet - I read an article Tom referred to in an earlier post which said that each site should have a unique combination of IP, host name and port number. However, if I keep the same IP address (the IP of the server it resides on) and the same port number (80, 443)) and add a new hostname (WSUS), then add the hostname to the DNS, the WSUS site name says 'stopped' after it. If I try to start it it says 'IIS was unable to start this site. Another site may be already using the port you configured for this site". So I went back and altered the ports to 81, 444 and it started OK. But I still can't access the site -I'm not sure what I should be typing, but http://server2/wsus gives 'page cannot be found', http://wsus says 'IE cannot display the program'. Any further suggestions? Do I need to alter the IP as well? I'm only offered the fixed IP of the server or 'all unassigned' -can I add another one manually?

  • 06-30-2008, 6:49 AM In reply to

    Re: What are the rules for port numbers for IIS use?

    I would check in the WSUS newsgroup if you can run as a host-headered site.  I'm not that familar with WSUS and sharing other sites on the box.  Maybe have wsus run on the default site and have your internal site as a host-headered site.  That'll still leave you port 443 on your host-headered site, if necessary.

    http://forums.technet.microsoft.com/en-US/winserverwsus/threads/

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 06-30-2008, 8:24 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,538
    • IIS MVPs
    • tomkmvp

    Re: What are the rules for port numbers for IIS use?

    alanterrill:
    So I went back and altered the ports to 81, 444 and it started OK. But I still can't access the site -I'm not sure what I should be typing, but http://server2/wsus gives 'page cannot be found', http://wsus says 'IE cannot display the program'.
    If you use any port other then the default, you need to include that in the url ... http://wsus:81/ ...

  • 07-01-2008, 8:48 AM In reply to

    • alanterrill
    • Not Ranked
    • Joined on 04-23-2008, 3:13 PM
    • Posts 5
    • alanterrill

    Re: What are the rules for port numbers for IIS use?

     Still no joy - http://server2/wsus:81 still gives a page not found message. http://wsus:81 tries and fails to lookup http://www.wsus.com!  I've tried stopping the existing website on server2, altering its Address to 81 and 444, then giving the WSUS site the default 80 and 443. Result: page cannot be found again.

  • 07-01-2008, 1:58 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,538
    • IIS MVPs
    • tomkmvp

    Re: What are the rules for port numbers for IIS use?

    alanterrill:
    Still no joy - http://server2/wsus:81 still gives a page not found message.
    ... because that's the wrong format, it's http://server:port/
    alanterrill:
    http://wsus:81 tries and fails to lookup http://www.wsus.com! 
    Sounds like a name server issue.

  • 07-01-2008, 3:00 PM In reply to

    • Rovastar
    • Top 10 Contributor
    • Joined on 03-13-2008, 2:00 PM
    • London, UK
    • Posts 515
    • Rovastar

    Re: What are the rules for port numbers for IIS use?

    Have you setup your host headers?

    what does nslookup say? 

    Most overused word in IT is 'should' as in 'That should work!?!'
  • 07-01-2008, 10:45 PM In reply to

    Re: What are the rules for port numbers for IIS use?

    Can you turn off show friend HTTP errors and post the error. 

    http://support.microsoft.com/kb/294807

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 07-01-2008, 10:52 PM In reply to

    • qbernard
    • Top 10 Contributor
    • Joined on 03-25-2003, 10:12 PM
    • Malaysia
    • Posts 2,218
    • IIS MVPs
    • qbernard

    Re: What are the rules for port numbers for IIS use?

    Errr.. why not just host header for the WSUS site?
    HOW TO: Use Host Header Names to Configure Multiple Web Sites in Internet Information Services 6.0
    http://support.microsoft.com/?id=324287

    Cheers,
    Bernard Cheah
Page 1 of 1 (11 items)
Page view counter