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.
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:
netstat -abno > netstat.txt
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: http://127.0.0.1:[PORT-CHOSEN]/Sophos/Installer/
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: HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters.
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
netsh http add iplisten 127.0.0.1
Windows 2003 httpcfg set iplisten -i 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)
NET STOP HTTP
NET START HTTP
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
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. If you need technical support please post a question to our community. Alternatively for licensed products open a support ticket.