{"id":55872,"date":"2020-05-14T16:19:12","date_gmt":"2020-05-14T20:19:12","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=55872"},"modified":"2021-08-16T15:37:49","modified_gmt":"2021-08-16T19:37:49","slug":"check-if-port-blocked-telnet","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/","title":{"rendered":"How to Check if a Port is Blocked with Telnet"},"content":{"rendered":"\n<p class=\"alert alert-danger\">We recommend using <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/check-if-port-blocked-netcat-ncat\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\"  >Netcat \/ Ncat<\/a>, or <a rel=\"noreferrer noopener\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/port-scan-with-nmap\/\" target=\"_blank\">Nmap<\/a> for multiple ports instead, as Telnet is <strong>NOT<\/strong> encrypted and therefore insecure.<\/p>\n\n\n\n<p>The Telnet command line tool tests port connections with your local network router, servers, and websites. For example, Telnet can help you <a rel=\"noreferrer noopener\"   href=\"https:\/\/www.inmotionhosting.com\/support\/email\/communicating-email-server-telnet\/\" target=\"_blank\">see why the email is being rejected<\/a>. Telnet is pre-installed on many Windows, macOS, and Unix OSs.<\/p>\n\n\n\n<p class=\"alert alert-warning\">You may need to <a   href=\"https:\/\/www.inmotionhosting.com\/support\/website\/enable-telnet\/\">enable Telnet on Windows Vista or 7<\/a>.<\/p>\n\n\n\n<p>Below we cover how to check if a port is open on your server or <a rel=\"noreferrer noopener\"   href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-find-your-local-router-ip-address-in-the-terminal\/\" target=\"_blank\">local network<\/a> from your terminal with <a   href=\"#telnet\">Telnet<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"telnet\">Check if a Port is Blocked with Telnet<\/h2>\n\n\n\n<p>Check if port 21 (FTP) is blocked by your local or server firewall:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">telnet your-domain.com 21<\/pre>\n\n\n\n<p>If the port is blocked, you&#8217;ll see similar results to the following:<\/p>\n\n\n\n<p><code>Trying 1.2.3.4...<br>\ntelnet: Unable to connect to remote host: Connection refused<\/code><\/p>\n\n\n\n<p>If the port is open, you&#8217;ll see results similar to the following:<\/p>\n\n\n\n<p><code>Trying 1.2.3.4...<br>Connected to your-domain.com.<br>Escape character is '^]'.<br>220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------<br>220-You are user number 1 of 100 allowed.<br>220-Local time is now 09:00. Server port: 21.<br>220-IPv6 connections are also welcome on this server.<br>220 You will be disconnected after 15 minutes of inactivity.<br>Connected to your-domain.com.<br>Escape character is '^]'.<\/code><\/p>\n\n\n\n<p>Type <kbd>Ctrl<\/kbd> + <kbd>]<\/kbd> to continue to the prompt. Then type <code>quit<\/code>, then <kbd>Enter<\/kbd> to close the Telnet connection.<\/p>\n\n\n\n<p>You can also use your <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/find-server-name\/\" target=\"_blank\" rel=\"noreferrer noopener\">server hostname<\/a> (part of your <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-your-temporary-url\/\" target=\"_blank\" rel=\"noreferrer noopener\">temporary URL<\/a>) or <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-find-your-shared-ip-address-of-your-server-in-cpanel\/\" target=\"_blank\" rel=\"noreferrer noopener\">server IP<\/a>.<\/p>\n\n\n\n<p>Check if port 22 (default SSH port) is blocked by your local network or server firewall:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">telnet server.hostname.com 22<\/pre>\n\n\n\n<p>If the port is open, you&#8217;ll see results similar to the following:<\/p>\n\n\n\n<p><code>Trying 1.2.3.5...<br>Connected to your-domain.com.<br>Escape character is '^]'.<br>SSH-2.0-OpenSSH_5.3<\/code><\/p>\n\n\n\n<p>If you&#8217;re still having connection issues, consider completing a <a rel=\"noreferrer noopener\"   href=\"https:\/\/www.inmotionhosting.com\/support\/website\/why-is-my-server-slow-how-do-i-run-a-ping-and-tracert-test\/\" target=\"_blank\">traceroute\/tracepath<\/a> or <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/what-is-mtr-and-how-to-test-network-performance\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\"  >mtr<\/a> to better understand the issue. Feel free to <a rel=\"noreferrer noopener\"   href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/how-to-get-great-technical-support\/\" target=\"_blank\">contact Live Support<\/a> for further assistance troubleshooting performance issues.<\/p>\n\n\n\n<p class=\"alert alert-info\">Ask us how we can support your next web application project with our <a rel=\"noreferrer noopener\" href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\" target=\"_blank\">Cloud Server Hosting<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recommend using Netcat \/ Ncat, or Nmap for multiple ports instead, as Telnet is NOT encrypted and therefore insecure. The Telnet command line tool tests port connections with your local network router, servers, and websites. For example, Telnet can help you see why the email is being rejected. Telnet is pre-installed on many Windows,<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4307],"tags":[],"class_list":["post-55872","post","type-post","status-publish","format-standard","hentry","category-ssh"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Check if a Port is Blocked with Telnet | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check if a Port is Blocked with Telnet | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-14T20:19:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-16T19:37:49+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Check if a Port is Blocked with Telnet\",\"datePublished\":\"2020-05-14T20:19:12+00:00\",\"dateModified\":\"2021-08-16T19:37:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\"},\"wordCount\":252,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"SSH and Root Access\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\",\"name\":\"How to Check if a Port is Blocked with Telnet | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2020-05-14T20:19:12+00:00\",\"dateModified\":\"2021-08-16T19:37:49+00:00\",\"description\":\"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check if a Port is Blocked with Telnet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check if a Port is Blocked with Telnet | InMotion Hosting","description":"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/","og_locale":"en_US","og_type":"article","og_title":"How to Check if a Port is Blocked with Telnet | InMotion Hosting","og_description":"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-05-14T20:19:12+00:00","article_modified_time":"2021-08-16T19:37:49+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Check if a Port is Blocked with Telnet","datePublished":"2020-05-14T20:19:12+00:00","dateModified":"2021-08-16T19:37:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/"},"wordCount":252,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["SSH and Root Access"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/","name":"How to Check if a Port is Blocked with Telnet | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2020-05-14T20:19:12+00:00","dateModified":"2021-08-16T19:37:49+00:00","description":"Learn how to use the Telnet command line tool to test if a port is blocked on your local network router or server. Or can you use Netcat or Nmap for better security?","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/check-if-port-blocked-telnet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Check if a Port is Blocked with Telnet"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=55872"}],"version-history":[{"count":10,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55872\/revisions"}],"predecessor-version":[{"id":82923,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55872\/revisions\/82923"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=55872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=55872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=55872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}