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


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

Full-stack impostor syndrome sufferer & Software Engineer at Schibsted Media Group

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