Solved

IIS httpcfg

Posted on 2006-10-20
6
1,730 Views
Last Modified: 2010-05-18
Trying to use multiple services that both use TCP 80 and 443 - but on two different IP addresses.  

One is IIS6.

I thought this would be a simple command to stop IIS from listening on all IPs (0.0.0.0:80 & 443) to just the single public address.
httpcfg set iplisten –I xxx.xxx.x.x:y

Tried that and although IIS would start, none of the sites were able to start.  

What am I missing?





0
Comment
Question by:gatorIT
  • 2
  • 2
6 Comments
 
LVL 29

Expert Comment

by:Nightman
Comment Utility
You can configure IIS to listen on only one IP address (in fact, you can even do this per web site). Select the web site, properties, on the first tab change IP Address from 'All unassigned' to the IP address you want (and as I said, you can actually do this per site).

For port 443 on that IP, ensure that no other services are using it.
0
 

Author Comment

by:gatorIT
Comment Utility
I'm sorry I failed to mention that I have triple checked that there are no sites (including all host headers and SSL) set to 'All Unassigned'.

When I added the appropriate entries with httpcfg, IIS would start but none of the sites would go to Running status.

Actually I just realized what the problem was....

I added an IP address with httpcfg that isn't bound to any interfaces.  I have several IPs, most of which are on the same subnet, but a couple are not, so in haste I added all IPs via httpcfg on the same subnet.

The following event was thrown:
"Unable to bind to the underlying transport for xxx.xxx.xxx.xxx:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine.  The data field contains the error number."



0
 
LVL 29

Expert Comment

by:Nightman
Comment Utility
Ahh - error logs are a wonderful thing ;)
0
 

Author Comment

by:gatorIT
Comment Utility
Actually, the problem ended up being that it didn't like specifying the ports in the httpcfg command.

httpcfg set iplisten -i xxx.xxx.xxx.xxx
(without :y where y is the port)

Works just fine.



0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now