443 / 80 not available for webNetwork
Customer installed webNetwork on a brand new Windows 2012 server and can't bind to port 443 because it is already in use. What is using it and how can I fix it ?
Most likely the built in IIS manager has 443 enabled for some of the new features in server 2012. This can happen even if you disable all of the IIS services.
Go to a dos cmd prompt and type :
netstat -ban > c:\\netstat.txt
Now edit c:\\netstat.txt with notpad and look for something like :
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
This says that 443 will be used on every ip number on the box. Thus even adding another ip number will not fix the problem.
Next try this from a cmd prompt :
netsh
http
show iplisten
If nothing shows up then that means that it is using every ip number automatically.
To fix this type :
add iplisten ipaddress=[ip address of the server]
now type :
show iplisten
It should display the ip number.
Next restart IIS by typing : iisreset
Type netstat -an > c:\\netstat.txt and double check.
You may still need to disable your other IIS services or add a 2nd ip number for webnetwork but you won't have the problem of IIS binding to all ip addresses anymore.
If you need help figuring out what is listening on those ports you can type: netsh http show urlacl
An example of what you might see : Reserved URL : https://+:443/remoteDesktopGateway/
Another command that helps : netsh http show service
An example of what you might see : Registered URLs: HTTPS://+:443/KDCPROXY/
If you have Remote Desktop Gateway installed then that will always take port 443 and you would have to remove that role or add a 2nd ip number for webNetwork.
The following microsoft url talks about changing the port numbers for the IP-HTTPS service : http://technet.microsoft.com/en-us/library/jj134148.aspx
Similar problems can happen for port 80 if the Microsoft IIS server or another webserver is active on that box. webNetwork has its own webserver and does not use 3rd party web servers to run. Disable these other webservers before starting webNetwork.