{"id":172,"date":"2026-04-19T10:27:03","date_gmt":"2026-04-19T09:27:03","guid":{"rendered":"https:\/\/vpp.dk\/?linux_trick=check-open-ports-on-the-system"},"modified":"2026-04-19T10:27:03","modified_gmt":"2026-04-19T09:27:03","slug":"check-open-ports-on-the-system","status":"publish","type":"linux_trick","link":"https:\/\/vpp.dk\/?linux_trick=check-open-ports-on-the-system","title":{"rendered":"Check open ports on the system"},"content":{"rendered":"<p>List all listening TCP\/UDP ports and the process that owns them.<\/p>\n","protected":false},"template":"","meta":{"_trick_code":"# All listening sockets + process names:\nss -tulnp\n\n# Or with netstat (older systems):\nnetstat -tulnp\n\n# Check if a specific port is open:\nss -tulnp | grep ':443'","_trick_uploader":"netadmin99"},"trick_category":[17,20],"class_list":["post-172","linux_trick","type-linux_trick","status-publish","hentry","trick_category-networking","trick_category-system-info"],"_links":{"self":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick"}],"about":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/types\/linux_trick"}],"wp:attachment":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172"}],"wp:term":[{"taxonomy":"trick_category","embeddable":true,"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftrick_category&post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}