{"id":47477,"date":"2022-05-26T13:57:51","date_gmt":"2022-05-26T10:57:51","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/how-do-i-check-if-a-port-is-available-on-the-server\/"},"modified":"2024-07-19T21:55:10","modified_gmt":"2024-07-19T18:55:10","slug":"kak-proverit-dostupnost-porta-na-servere","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/kak-proverit-dostupnost-porta-na-servere\/","title":{"rendered":"How do I check if a port is available on the server?"},"content":{"rendered":"\n<p>You can use the telnet utility to do this. This utility is generally available on all available Windows, Linux, Mac OS operating systems.<\/p>\n\n<p>Telnet is available in the terminal, so open the terminal to use it. For example, in Windows you can open a terminal by pressing the key combination &#8220;Windows + R&#8221; and in the field enter cmd and press Enter.<\/p>\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"447\" height=\"212\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd.png\" alt=\"cmd\" class=\"wp-image-47465\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd.png 447w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd-300x142.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd-150x71.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd-125x59.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/cmd-75x36.png 75w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><figcaption>Calling the command line in Windows<\/figcaption><\/figure><\/div>\n\n<p>The utility is quite simple and to use it, all you need to know is the server name (domain name) or its IP and the port of the service you want to check.<br\/>For example, to check if the SMTP port is available, enter the following:<\/p>\n\n<pre class=\"wp-block-code ghostkit-custom-Z1CH2q9\"><code>telnet mail.yourdomain.com 25<\/code><\/pre>\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"342\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2.png\" alt=\"Welcome message\" class=\"wp-image-47468\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2.png 675w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2-300x152.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2-150x76.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2-125x63.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port2-75x38.png 75w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><figcaption>Server greeting<\/figcaption><\/figure><\/div>\n\n<p>Otherwise you will get a connection error.<\/p>\n\n<p>The cause of the connection error in most cases is the firewall, which can block the port on the client side,<br\/>as well as on the server side. Therefore, first of all, you should check the firewall settings on your PC.<\/p>\n\n<p>If your PC does not have telnet installed, you can install it through the Control Panel.<\/p>\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"599\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3.png\" alt=\"enable telnet client\" class=\"wp-image-47471\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3.png 817w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3-300x220.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3-150x110.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3-768x563.png 768w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3-125x92.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2022\/05\/port3-75x55.png 75w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><figcaption>Enabling the Telnet client  <\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can use the telnet utility to do this. This utility is generally available on all available Windows, Linux, Mac OS operating systems. Telnet is available in the terminal, so open the terminal to use it. For example, in Windows you can open a terminal by pressing the key combination &#8220;Windows + R&#8221; and in&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10669],"ht-kb-tag":[],"class_list":["post-47477","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hosting-en"],"taxonomy_info":{"ht_kb_category":[{"value":10669,"label":"Hosting"}]},"featured_image_src_large":[],"author_info":{"display_name":"\u0421\u043b\u0430\u0432\u0438\u043a \u041a\u0440\u0438\u0432\u0443\u0446\u0435\u043d\u043a\u043e","author_link":"https:\/\/tuthost.ua\/en\/author\/slava-tuthost-com\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/47477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=47477"}],"version-history":[{"count":8,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/47477\/revisions"}],"predecessor-version":[{"id":58399,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/47477\/revisions\/58399"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=47477"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=47477"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=47477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}