ss(8) -4tan
another utility to investigate sockets
-4, --ipv4
       Display only IP version 4 sockets (alias for -f inet).
-t, --tcp
       Display TCP sockets.
-a, --all
       Display both listening and non-listening (for TCP this means established connections) sockets.
-n, --numeric
       Do not try to resolve service names.
source manpages: ss