This is just a quick entry on how to see which software is using which ports. This comes in handy when trying to install an application server, web server, etc, and are getting errors like “port is in use”.
Basically in any Unix type derivative such as Linux such (Ubuntu, RedHat, SuSe, etc.), as well as Mac OS X, all that you need to type this at the command line:
- lsof -i
I remember there being a couple of commands in Windows which you could do this with, but it’s been so long since I’ve used Windows on a regular basis I honestly don’t remember how to do it. I do know you can use TCPView to accomplish the same thing, however.