ss

Utility to investigate sockets.
More information.
ss -a {-t|-u|-w|-x}
ss {state/exclude} {bucket/big/connected/synchronized/...}
ss -t src :{443}
ss -lt src :{8080}
ss -pt dst :{ssh}
ss -u 'sport == :{source_port} and dport == :{destination_port}'
ss -4t src {192.168/16}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY