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!

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at

RSS Latest posts from my personal blog

Most viewed posts

Subscribe to RSS feed

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.
Twitter Profile
Visit my other blog

Comments 1
  • ahmet ertugrul
    Posted on

    ahmet ertugrul ahmet ertugrul

    Reply Author

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

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

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