Cadzow Knowledgebase

Contact Us

Site Search

Remote Support

Print Friendly

Managing IIS/Apache On The Same Server

Internet Information Services (IIS) is Windows' inbuilt webserver platform.

IIS manages multiple websites on the same server by allowing different websites to respond to different host name requests on various ports. So a request for on port 80 will be sent to one web application, and a request for on port 80 will be sent to another. This is despite and resolving to the same public IP address and using the same port. This is achieved via “bindings”. (An incoming request for a site using the public IP address will fail because IIS does not know which web application to send it to.)

Bindings also allow different web services to be available on different local network adaptors where the server has multiple addresses (say,,

Thus IIS can manage multiple sites across multiple addresses. However, binding web sites to a specific local IP address (say does not change the fact that the W3SVC process will still listen on all adaptors for the desired ports, even if IIS itself will not process requests from all addresses. For example, as shown by the following netstat command:

netstat -an | find ":80"

  TCP                 LISTENING

So if there is a need to run another service on port 80 — most commonly an Apache web server — there are no spare IPs available for the service to listen on.

However both Apache and IIS can be told which adaptors to listen on via manual configuration.

To configure IIS to listen on specific IPs (say localhost and, open an elevated command prompt and enter:

    netsh http add iplisten ipaddress=

    netsh http add iplisten ipaddress=

    net stop w3svc /y

    net start w3svc

To check the IPs listed:

    netsh http show iplisten

To remove an IP:

    netsh http delete iplisten ipaddress=

To configure Apache to listen on specific IPs (say

Open Conf\http.conf.

Find the line that reads:

    Listen 80

and change it to:

    #Listen 80

Add another line which reads


Save the file and restart Apache.

Netstat will now show the individual listeners:

  TCP              LISTENING
  TCP              LISTENING
  TCP               LISTENING

Copyright © 1996-2023 Cadzow TECH Pty. Ltd. All rights reserved.
Information and prices contained in this website may change without notice. Terms of use.

Question/comment about this page? Please email