`netstat` on Unix, macOS, and BSD (now replaced by `ss` on Linux) is a standard command for viewing and debugging network connections. There is a newer, more modern tool called snitch, written in Go lang, designed to inspect network connections on Linux and Unix with a cleaner and easy to use TUI.