Most Domino Admins will have seen this in a console from time to time. It happens when a local OS application is using a port Domino wants to use. So far, so simple. But what’s the quickest way of finding out which application/service is using the port you want? In windows it really is quite easy…
Open a command prompt and type:
netstat -an -o
This will give you a list of applications (and PIDs) that have ownership of ports. Look for the port, and associate the PID with a Process in task manager.
Let’s take a common example. You enable HTTPS for web connections in the server document and restart http. The Domino console tells you “HTTP Server: Error – Unable to Bind port 443, port may be in use or user needs net_privaddr privilege”.
Remote to the OS of the server. Open a command prompt. Type “netstat -an -o”. You’ll get something like this:-
Look for the port in question, in this case it’s 443, and the associated PID is 1268. Open windows task manager, click “View” and “Select Columns..
Make sure PID is selected as a column.
Sort by the “PID” column and look for the PID from earlier (1268 in this case), you’ll find the “offending” application under “Image Name”.
In this case it was TeamViewer as you can see.
I hope you found this useful. It’s not that complex a problem, but often it takes few minutes to remember exactly what the best way of checking this is!
Cormac McCarthy – Domino People Ltd.