Created
June 25, 2019 19:58
-
-
Save realytcracker/3e7c44c981b530e3c4fd8f91b34cfddd to your computer and use it in GitHub Desktop.
dear computer please show me what process is hogging what port thank you
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# osx | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | |
# loonix | |
sudo netstat -ltnp | |
sudo lsof -i :[port number] | |
sudo fuser [port number]/tcp | |
ps -p [port number] -o comm= | |
# winderz | |
Get-Process -Id (Get-NetTCPConnection -LocalPort [port number]).OwningProcess | |
netstat -a -b -o | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment