{"id":2078,"date":"2024-03-12T09:10:51","date_gmt":"2024-03-12T09:10:51","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/"},"modified":"2024-03-31T15:14:36","modified_gmt":"2024-03-31T15:14:36","slug":"how-to-check-if-the-port-is-open-on-the-other-side-in-linux","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/","title":{"rendered":"How to check if the port is open on the other side in Linux?"},"content":{"rendered":"<p>You can use telnet, nc (netcat), or <a href=\"https:\/\/nmap.org\/\">nmap<\/a> to check if the ports of a remote host are open.<\/p>\n<ol>\n<li>Utilize the telnet command:<\/li>\n<\/ol>\n<p>Telnet is a network protocol that allows for interactive text-based communication between remote hosts. You can use the following command to check if a port is open on a remote host:<\/p>\n<pre class=\"post-pre\"><code>telnet &lt;host&gt; &lt;port&gt;\r\n<\/code><\/pre>\n<p>For example, to check if port 80 is open on the remote host 192.168.1.100, you can execute the following command:<\/p>\n<pre class=\"post-pre\"><code>telnet 192.168.1.100 80\r\n<\/code><\/pre>\n<p>If the port is open, you will see a message indicating successful connection; otherwise, a message indicating connection failure will be displayed.<\/p>\n<ol>\n<li>Utilize the nc (netcat) command:<\/li>\n<\/ol>\n<p>Netcat (nc) is a command line tool used for handling TCP and UDP connections. You can use the following command to check if a port on a remote host is open:<\/p>\n<pre class=\"post-pre\"><code>nc -z &lt;host&gt; &lt;port&gt;\r\n<\/code><\/pre>\n<p>For example, to check if port 80 is open on the remote host 192.168.1.100, you can execute the following command:<\/p>\n<pre class=\"post-pre\"><code>nc -z 192.168.1.100 80\r\n<\/code><\/pre>\n<p>If the port is open, no output will be displayed; otherwise, a message indicating connection failure will be shown.<\/p>\n<ol>\n<li>Utilize the nmap command:<\/li>\n<\/ol>\n<p>nmap is a network scanning tool that can assist you in checking the port status of remote hosts. You can use the following command to scan the ports of remote hosts:<\/p>\n<pre class=\"post-pre\"><code>nmap &lt;host&gt;\r\n<\/code><\/pre>\n<p>For example, to scan the port status on the remote host 192.168.1.100, you can execute the following command:<\/p>\n<pre class=\"post-pre\"><code>nmap 192.168.1.100\r\n<\/code><\/pre>\n<p>nmap displays the port status of remote hosts (open, closed, or filtered).<\/p>\n<p>Please be aware that you may need to install telnet, nc, or nmap tools in the system in order to execute the commands above.<\/p>\n<p>&nbsp;<\/p>\n<p>More tutorials<\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/how-can-linux-detect-if-a-remote-hosts-port-is-open\/\" target=\"_blank\" rel=\"noopener\">How can Linux detect if a remote host&#8217;s port is open?<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/using-telnet-commands-in-linux-unix\/\" target=\"_blank\" rel=\"noopener\">Using Telnet Commands in Linux\/Unix<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/how-can-you-check-open-ports-in-centos\/\" target=\"_blank\" rel=\"noopener\">How can you check open ports in CentOS?<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/remote-desktop-protocol-on-ubuntu-22-04-by-utilizing-xrdp\/\" target=\"_blank\" rel=\"noopener\">Remote Desktop Protocol on Ubuntu 22.04 by utilizing xrdp.<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/primefaces-message-messages-and-growl-components\/\" target=\"_blank\" rel=\"noopener\">Primefaces&#8217; Message, Messages, and Growl components<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open. Utilize the telnet command: Telnet is a network protocol that allows for interactive text-based communication between remote hosts. You can use the following command to check if a port is open on a remote host: telnet [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2078","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to check if the port is open on the other side in Linux? - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network\" \/>\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.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\" \/>\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 the port is open on the other side in Linux?\" \/>\n<meta property=\"og:description\" content=\"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-12T09:10:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-31T15:14:36+00:00\" \/>\n<meta name=\"author\" content=\"Olivia Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Parker\" \/>\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.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\"},\"author\":{\"name\":\"Olivia Parker\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\"},\"headline\":\"How to check if the port is open on the other side in Linux?\",\"datePublished\":\"2024-03-12T09:10:51+00:00\",\"dateModified\":\"2024-03-31T15:14:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\"},\"wordCount\":342,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\",\"name\":\"How to check if the port is open on the other side in Linux? - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2024-03-12T09:10:51+00:00\",\"dateModified\":\"2024-03-31T15:14:36+00:00\",\"description\":\"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to check if the port is open on the other side in Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\",\"name\":\"Olivia Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"caption\":\"Olivia Parker\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to check if the port is open on the other side in Linux? - Blog - Silicon Cloud","description":"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network","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.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to check if the port is open on the other side in Linux?","og_description":"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network","og_url":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2024-03-12T09:10:51+00:00","article_modified_time":"2024-03-31T15:14:36+00:00","author":"Olivia Parker","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Olivia Parker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/"},"author":{"name":"Olivia Parker","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9"},"headline":"How to check if the port is open on the other side in Linux?","datePublished":"2024-03-12T09:10:51+00:00","dateModified":"2024-03-31T15:14:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/"},"wordCount":342,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/","url":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/","name":"How to check if the port is open on the other side in Linux? - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2024-03-12T09:10:51+00:00","dateModified":"2024-03-31T15:14:36+00:00","description":"You can use telnet, nc (netcat), or nmap to check if the ports of a remote host are open.Utilize the telnet command:Telnet is a network","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/how-to-check-if-the-port-is-open-on-the-other-side-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to check if the port is open on the other side in Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9","name":"Olivia Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","caption":"Olivia Parker"},"url":"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/2078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=2078"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/2078\/revisions"}],"predecessor-version":[{"id":72227,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/2078\/revisions\/72227"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=2078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=2078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=2078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}