Useful Snippets

Useful Snippets


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

July 2020
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories


Show open ports and what program is using them

Stanislav KhromovStanislav Khromov
netstat -lptn

Alternatively you can use:

netstat --tcp --listening --programs --numeric

Common uses

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
LinkedIn
Twitter
WordPress.org Profile
Visit my other blog

Comments 1
  • ahmet ertugrul
    Posted on

    ahmet ertugrul ahmet ertugrul

    Reply Author

    I am biding my socket to ‘192.168.1.108’ YET the list generated by above command shows:

    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.1.1:6958 0.0.0.0:* LISTEN 930/python3

    AND 127.0.1.1 is not reachable from any other RPi’s in my network