Simple client / server with nc not working The Next CEO of Stack Overflowwhy ping6 fails if...

What did we know about the Kessel run before the prequels?

Why is information "lost" when it got into a black hole?

Why this way of making earth uninhabitable in Interstellar?

Is it professional to write unrelated content in an almost-empty email?

Would a completely good Muggle be able to use a wand?

How did people program for Consoles with multiple CPUs?

Solving system of ODEs with extra parameter

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Why isn't the Mueller report being released completely and unredacted?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

How many extra stops do monopods offer for tele photographs?

Is there a difference between "Fahrstuhl" and "Aufzug"

Axiom Schema vs Axiom

Why didn't Khan get resurrected in the Genesis Explosion?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

0 rank tensor vs 1D vector

What does "Its cash flow is deeply negative" mean?

Does increasing your ability score affect your main stat?

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Writing differences on a blackboard

Do I need to write [sic] when a number is less than 10 but isn't written out?

Why do airplanes bank sharply to the right after air-to-air refueling?

Is there a way to save my career from absolute disaster?



Simple client / server with nc not working



The Next CEO of Stack Overflowwhy ping6 fails if tcpdump shows ICMP6 request/reply traffic?Linux Firewall & sharing files between computers in different subnets connected to single switchDo I need a firewall if the service doesn't listen on all interfaces?KVM Ubuntu Guest cannot connect to the internet on bridged networkingHow to configure dual homed server in order for both network segments to communicate?How to add an static route on google compute engineAWS port unreachable on REHLUnable to access Node Server from external networkHow to debug linux networking: Address already in useDuplication of UDP traffic to two ports on localhost












0















Why is the following not working?



I have a freshly installed Debian 9 system. iptables is wide-open:



[···]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


I log in on two separate consoles (well, two separate ssh logins). In one of them, I run:



[···]# nc -l 11115


Then, I go to the other console, and run:



[···]# nc localhost 11115


and I get a Connection refused error:



[···]# nc localhost 11115
localhost [127.0.0.1] 11115 (?) : Connection refused


I also tried nc 127.0.0.1 11115, tried with telnet --- always Connection refused.



On the "listening" side, I also tried nc -l localhost 11115 --- no difference.



What am I missing or doing wrong?









share







New contributor




Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    Why is the following not working?



    I have a freshly installed Debian 9 system. iptables is wide-open:



    [···]# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination


    I log in on two separate consoles (well, two separate ssh logins). In one of them, I run:



    [···]# nc -l 11115


    Then, I go to the other console, and run:



    [···]# nc localhost 11115


    and I get a Connection refused error:



    [···]# nc localhost 11115
    localhost [127.0.0.1] 11115 (?) : Connection refused


    I also tried nc 127.0.0.1 11115, tried with telnet --- always Connection refused.



    On the "listening" side, I also tried nc -l localhost 11115 --- no difference.



    What am I missing or doing wrong?









    share







    New contributor




    Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Why is the following not working?



      I have a freshly installed Debian 9 system. iptables is wide-open:



      [···]# iptables -L
      Chain INPUT (policy ACCEPT)
      target prot opt source destination

      Chain FORWARD (policy ACCEPT)
      target prot opt source destination

      Chain OUTPUT (policy ACCEPT)
      target prot opt source destination


      I log in on two separate consoles (well, two separate ssh logins). In one of them, I run:



      [···]# nc -l 11115


      Then, I go to the other console, and run:



      [···]# nc localhost 11115


      and I get a Connection refused error:



      [···]# nc localhost 11115
      localhost [127.0.0.1] 11115 (?) : Connection refused


      I also tried nc 127.0.0.1 11115, tried with telnet --- always Connection refused.



      On the "listening" side, I also tried nc -l localhost 11115 --- no difference.



      What am I missing or doing wrong?









      share







      New contributor




      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Why is the following not working?



      I have a freshly installed Debian 9 system. iptables is wide-open:



      [···]# iptables -L
      Chain INPUT (policy ACCEPT)
      target prot opt source destination

      Chain FORWARD (policy ACCEPT)
      target prot opt source destination

      Chain OUTPUT (policy ACCEPT)
      target prot opt source destination


      I log in on two separate consoles (well, two separate ssh logins). In one of them, I run:



      [···]# nc -l 11115


      Then, I go to the other console, and run:



      [···]# nc localhost 11115


      and I get a Connection refused error:



      [···]# nc localhost 11115
      localhost [127.0.0.1] 11115 (?) : Connection refused


      I also tried nc 127.0.0.1 11115, tried with telnet --- always Connection refused.



      On the "listening" side, I also tried nc -l localhost 11115 --- no difference.



      What am I missing or doing wrong?







      linux-networking nc





      share







      New contributor




      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 mins ago









      Cal-linuxCal-linux

      101




      101




      New contributor




      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Cal-linux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });






          Cal-linux is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960798%2fsimple-client-server-with-nc-not-working%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Cal-linux is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Cal-linux is a new contributor. Be nice, and check out our Code of Conduct.













          Cal-linux is a new contributor. Be nice, and check out our Code of Conduct.












          Cal-linux is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960798%2fsimple-client-server-with-nc-not-working%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...