How To Display Which Processes Are Using What Ports

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:

  1. 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.

This entry was posted in Culture, Databases, Operating Systems, Servers, Tips, Hacks, & Tricks and tagged , , , , , , , , , , , , . Bookmark the permalink.

3 Responses to "How To Display Which Processes Are Using What Ports"

Leave a reply