For Measuring Network Statistics with port and which program used that we used “netstat” command.
This show’s all the program that runs on a certain port.
Now the code is
netstat -tulpn
Now you have to remember this is run based on user, so when you run on this command without sudo and with sudo result will be different, because the program that runs by the user will show full information,
But if you run on
sudo netstat -tulpn
you will found that it’s run on Java, like this
so instead of
netstat -tulpn
run
sudo netstat -tulpn
Leave A Comment?
You must be logged in to post a comment.