What are the alternatives for checking open ports, besides telnet?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












we can use the following in order to test telnet VIA port
as the following example we test port 6667



[root@kafka03 ~]# telnet kafka02 6667
Trying 103.64.35.86...
Connected to kafka02.
Escape character is '^]'.
^CConnection closed by foreign host


since on some machines we cant use telnet , from internal reasons



then we want know what are the alternative to check post as telnet










share|improve this question



























    up vote
    2
    down vote

    favorite












    we can use the following in order to test telnet VIA port
    as the following example we test port 6667



    [root@kafka03 ~]# telnet kafka02 6667
    Trying 103.64.35.86...
    Connected to kafka02.
    Escape character is '^]'.
    ^CConnection closed by foreign host


    since on some machines we cant use telnet , from internal reasons



    then we want know what are the alternative to check post as telnet










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      we can use the following in order to test telnet VIA port
      as the following example we test port 6667



      [root@kafka03 ~]# telnet kafka02 6667
      Trying 103.64.35.86...
      Connected to kafka02.
      Escape character is '^]'.
      ^CConnection closed by foreign host


      since on some machines we cant use telnet , from internal reasons



      then we want know what are the alternative to check post as telnet










      share|improve this question















      we can use the following in order to test telnet VIA port
      as the following example we test port 6667



      [root@kafka03 ~]# telnet kafka02 6667
      Trying 103.64.35.86...
      Connected to kafka02.
      Escape character is '^]'.
      ^CConnection closed by foreign host


      since on some machines we cant use telnet , from internal reasons



      then we want know what are the alternative to check post as telnet







      linux rhel curl telnet






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 mins ago









      steve

      13.4k22251




      13.4k22251










      asked 4 hours ago









      yael

      2,1511650




      2,1511650




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          netcat is one option.



          nc -zv kafka02 6667



          • -z = sets nc to simply scan for listening daemons, without actually sending any data to them


          • -v = enables verbose mode





          share|improve this answer




















          • is it possible to get standard output from the nc ? because I want to write in in my bash script
            – yael
            4 hours ago










          • Read the documentation! Without options nc behaves a lot like telnet.
            – Henrik
            3 hours ago










          • yes I read the docs but -w flag not works as timeout
            – yael
            3 hours ago










          • example - c -v -w 1 kafka01 6667 ( we not get timeout )
            – yael
            3 hours ago










          • nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
            – yael
            3 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479710%2fwhat-are-the-alternatives-for-checking-open-ports-besides-telnet%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote













          netcat is one option.



          nc -zv kafka02 6667



          • -z = sets nc to simply scan for listening daemons, without actually sending any data to them


          • -v = enables verbose mode





          share|improve this answer




















          • is it possible to get standard output from the nc ? because I want to write in in my bash script
            – yael
            4 hours ago










          • Read the documentation! Without options nc behaves a lot like telnet.
            – Henrik
            3 hours ago










          • yes I read the docs but -w flag not works as timeout
            – yael
            3 hours ago










          • example - c -v -w 1 kafka01 6667 ( we not get timeout )
            – yael
            3 hours ago










          • nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
            – yael
            3 hours ago















          up vote
          4
          down vote













          netcat is one option.



          nc -zv kafka02 6667



          • -z = sets nc to simply scan for listening daemons, without actually sending any data to them


          • -v = enables verbose mode





          share|improve this answer




















          • is it possible to get standard output from the nc ? because I want to write in in my bash script
            – yael
            4 hours ago










          • Read the documentation! Without options nc behaves a lot like telnet.
            – Henrik
            3 hours ago










          • yes I read the docs but -w flag not works as timeout
            – yael
            3 hours ago










          • example - c -v -w 1 kafka01 6667 ( we not get timeout )
            – yael
            3 hours ago










          • nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
            – yael
            3 hours ago













          up vote
          4
          down vote










          up vote
          4
          down vote









          netcat is one option.



          nc -zv kafka02 6667



          • -z = sets nc to simply scan for listening daemons, without actually sending any data to them


          • -v = enables verbose mode





          share|improve this answer












          netcat is one option.



          nc -zv kafka02 6667



          • -z = sets nc to simply scan for listening daemons, without actually sending any data to them


          • -v = enables verbose mode






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 4 hours ago









          steve

          13.4k22251




          13.4k22251











          • is it possible to get standard output from the nc ? because I want to write in in my bash script
            – yael
            4 hours ago










          • Read the documentation! Without options nc behaves a lot like telnet.
            – Henrik
            3 hours ago










          • yes I read the docs but -w flag not works as timeout
            – yael
            3 hours ago










          • example - c -v -w 1 kafka01 6667 ( we not get timeout )
            – yael
            3 hours ago










          • nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
            – yael
            3 hours ago

















          • is it possible to get standard output from the nc ? because I want to write in in my bash script
            – yael
            4 hours ago










          • Read the documentation! Without options nc behaves a lot like telnet.
            – Henrik
            3 hours ago










          • yes I read the docs but -w flag not works as timeout
            – yael
            3 hours ago










          • example - c -v -w 1 kafka01 6667 ( we not get timeout )
            – yael
            3 hours ago










          • nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
            – yael
            3 hours ago
















          is it possible to get standard output from the nc ? because I want to write in in my bash script
          – yael
          4 hours ago




          is it possible to get standard output from the nc ? because I want to write in in my bash script
          – yael
          4 hours ago












          Read the documentation! Without options nc behaves a lot like telnet.
          – Henrik
          3 hours ago




          Read the documentation! Without options nc behaves a lot like telnet.
          – Henrik
          3 hours ago












          yes I read the docs but -w flag not works as timeout
          – yael
          3 hours ago




          yes I read the docs but -w flag not works as timeout
          – yael
          3 hours ago












          example - c -v -w 1 kafka01 6667 ( we not get timeout )
          – yael
          3 hours ago




          example - c -v -w 1 kafka01 6667 ( we not get timeout )
          – yael
          3 hours ago












          nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
          – yael
          3 hours ago





          nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
          – yael
          3 hours ago


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479710%2fwhat-are-the-alternatives-for-checking-open-ports-besides-telnet%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery