The netstat command is used to display network statistics. You’d use netstat to determine what type of network connections are occurring inbound or outbound to/from the local computer.
- netstat -a
- Shows all active connections, inbound or outbound
- netstat -b
- Shows which binaries (in Windows) that are sending/receiving information.
- Requires elevated privileges to run
- netstat -n
- Does not resolve names. Just shows IP information instead of a resolved DNS name.