Netstat listening programs on ports alternative on Debian 9

What is the alternative to command netstat -ntpl on Debian 9?
I am using this command to check what program is listening on port.
Alternatively with parameters -ntupl (with u) including UDP.

2 Answers

netstat (with both options) works fine on Debian 9. If it is not installed, it is in the package net-tools.

There is also the ss command (dumps socket statistics) from the package iproute2. The option you have given, seem all to be the same: ss -nptl, etc.. The output format is a bit different, though.

2

Simply use ss -a4n for listening all ipv4 port (listening or not) and not resolve the port number (show the number, not the service)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like