{"id":472,"date":"2011-03-29T22:34:29","date_gmt":"2011-03-30T04:34:29","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=472"},"modified":"2018-10-04T06:06:27","modified_gmt":"2018-10-04T12:06:27","slug":"to-find-ports-opened-on-the-server","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/to-find-ports-opened-on-the-server\/","title":{"rendered":"To find ports opened on the server"},"content":{"rendered":"<p><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><span style=\"font-family: 'Times New Roman'; font-size: small;\"><br \/>\n<\/span><\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">Login to the server:<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">telnet localhost &#8220;portnumber&#8221;<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-family: 'Times New Roman'; font-size: medium;\">netstat command to find open ports<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">netstat &#8211;listen<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">To display open ports and established TCP connections, enter<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">netstat -vatn<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">To display only open UDP ports try the following command:<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">netstat -vaun<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">To display the list of open ports, enter:<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\"><br \/>\n<\/span><span style=\"font-family: 'Times New Roman'; font-size: medium;\">lsof -i<\/span><\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Login to the server: telnet localhost &#8220;portnumber&#8221; netstat command to find open ports &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- netstat &#8211;listen To display open ports and established TCP connections, enter &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- netstat -vatn To display&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-472","post","type-post","status-publish","format-standard","hentry","category-linux-basics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":4,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":3321,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions\/3321"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}