{"id":223,"date":"2005-05-07T04:02:14","date_gmt":"2005-05-07T09:02:14","guid":{"rendered":"https:\/\/www.suramya.com\/blog\/2005\/05\/07\/how-to-see-which-programs-are-opening-ports\/"},"modified":"2022-06-16T15:17:55","modified_gmt":"2022-06-16T09:47:55","slug":"how-to-see-which-programs-are-opening-ports","status":"publish","type":"post","link":"https:\/\/www.suramya.com\/blog\/2005\/05\/how-to-see-which-programs-are-opening-ports\/","title":{"rendered":"How to see which programs are opening ports"},"content":{"rendered":"\n<p>These tools will help you identify which programs are opening what ports on the system.<\/p>\n<p><b>1. lsof | grep &#8216;IPv.&#8217; <\/b><\/p>\n<p> lsof shows the list of open files, piping it through grep and searching for IPv will give you a list of ports used by a program <\/p>\n<p><b>lsof -i TCP:&amp;lt;PORT&gt;<\/b><\/p>\n<p>where PORT is the one you need to know about the program behind it.<\/p>\n<p><b>2. netstat -anp<\/b><\/p>\n<p>Should display open ports, machines connected to the ports as well as which application has that port open.<\/p>\n<p>If you know of any other ways let me know.<\/p>\n<p>&#8211; Suramya<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These tools will help you identify which programs are opening what ports on the system. 1. lsof | grep &#8216;IPv.&#8217; lsof shows the list of open files, piping it through grep and searching for IPv will give you a list of ports used by a program lsof -i TCP:&amp;lt;PORT&gt; where PORT is the one you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[19,20,2],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-computer-security","category-security-toolsapps","category-techie-stuff"],"_links":{"self":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":1,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":5035,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions\/5035"}],"wp:attachment":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}