Useful Snippets

Welcome!


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 Unwanted.cloud

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.
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