You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
* _Note:_ (1) will take long as IPs are resolved (DNS) (2) also lists all ports <1024 (b/c of `sudo`)
* same as above but only IPv4 and only TCP;do not reolve IPs (`-n`)
* same as above but only IPv4 and only TCP;do not resolve IPs (`-n`)
*`sudo lsof -nP -i4TCP:$PORT| grep LISTEN`
* again, same/similar as above but only for UDP *`sudo lsof -nP -i4TCP | grep LISTEN`
@@ -63,4 +63,4 @@ _Note:_ Need `sudo` if you want information on ports below 1024.
### Links / references
* [Stackoverflow: Who is listening on a given TCP port on Mac OS X?](https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x)
* [Stackoverflow: Who is listening on a given TCP port on Mac OS X?](https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x)
This file contains hidden or 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
* [Stackoverflow: Who is listening on a given TCP port on Mac OS X?](https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x)