The following error message is displayed during the installation of Enterprise Console 5.x:
The port selected is already in use.
First seen in
Enterprise Console 5.0.0
Either the port you have entered is currently in use or the check performed by the installer is failing.
What To Do
Check that the port you have chosen is not already in use by another process on the machine, to do so please perform the following steps:
- Open a command prompt running as an administrative account. Start | Run type:
cmd.exe press Enter.
- In the command windows type:
netstat -abno > netstat.txt
- Search in Notepad for the port you chose during the installation. For example if the port chosen was 95, search for
:95. The colon will ensure this searches for just the port part of an endpoint address.
- If a match is made, check the name of the process that is using the port. You can either, choose a different port or potentially restart or temporarily stop the process using the port. If no port is returned please continue to the next section.
Check that HTTP.sys is listening on 127.0.0.1.
By default HTTP.sys (the HTTP service) listens on all interfaces which includes 127.0.0.1. If however you have configured the HTTP service to listen just on a particular IP address or IP addresses that does not include 127.0.0.1, the check made by the installer will fail.
The Enterprise Console installer (setup.exe) checks if the port chosen is available by attempting to register a URL on the chosen port and then un-register it.
Note: The installer attempts to register the following URL:
If however you have configured the HTTP service with a command such as:
netsh http add iplisten [IP]
this will create a REG_MULTI_SZ value called
ListenOnlyList under the registry key:
If this key exists, without 127.0.0.1 being in the list, the check made by the installer will fail. To ensure it succeeds you can add 127.0.0.1 to the key by running the following command:
Windows 2008/Windows 7
netsh http add iplisten 127.0.0.1
httpcfg set iplisten -i 127.0.0.1
Note: httpcfg.exe is not installed by default but can be found on the 2003 operating system CD in the following location '...\Support\Tools\Support.cab'. Otherwise the tool can be downloaded from Microsoft. It is included in the XP SP2 Support Tools.
Note: on Windows 2003, you will have to restart the HTTP service after changing the configuration. To do so, run:
NET STOP HTTP, followed by
NET START HTTP (remembering to start any services that were stopped)
This will add 127.0.0.1 to the list of addresses the HTTP service will listen on. Once 127.0.0.1 is added, attempt to choose a port a click Next.
Important: Once you are past the port check page, it is recommended to remove 127.0.0.1 from the ListenOnlyList key, especially if it is the only valid IP address in the list as this will prevent remote clients accessing the Sophos web service. To do so run:
Windows 2008/Windows 7
netsh http delete iplisten ipaddress=127.0.0.1
httpcfg delete iplisten -i 127.0.0.1