If we want to check one program on one remote server, we need to know this server’s IP and port number. How to get this program’s port number in the remote server?
# netstat -tulpn
Remember to run this program with root permission since some programs can only be accessed by root.