ss -tunlp4 <===> you may want to do is see what ports are listening on the localhost

-t <===> Show TCP ports.
-u <===> Show UDP ports.
-n <===> Do not try to resolve hostnames.
-l <===> Show only listening ports.
-p <===> Show the processes that are using a particular socket.
-4 <===> Show only IPv4 sockets.