How to get one process's port number?

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?

asked Dec 5, 2017 by harryxiyou (5,830 points)

1 Answer

Best answer
# netstat -tulpn

Remember to run this program with root permission since some programs can only be accessed by root.

answered Dec 5, 2017 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost