title: Why am i getting this error running 'net' module node.js
body: <p>I am using .net modular and opening tcp port on 6112.</p>
  
  <pre><code>var net = require('net');
      var server = net.createServer(function (socket) { //'connection' listener
      });
  server.listen(6112, function () { //'listening' listener
      console.log('server started');
  });
  </code></pre>
  
  <p>On the same machine i start a java socket in main.</p>
  
  <pre><code>public static void main(String[] args) {
          // TODO Auto-generated method stub
  
          try {
              System.out.println("Connecting...");
              Socket socket = new Socket("localhost", 6112);
              System.out.println("Connected");
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
      }
  </code></pre>
  
  <p>I get this exception,</p>
  
  <pre><code>C:\Users\Mustafa\WebstormProjects\Node.Js&gt;node hello.js
  server started
  
  events.js:72
          throw er; // Unhandled 'error' event
                ^
  Error: read ECONNRESET
      at errnoException (net.js:884:11)
      at TCP.onread (net.js:539:19)
  </code></pre>
  
  <p>Is this like a bug or something, cause if once i get through this bug, I will be good thanks.</p>
  
  <p>I haven't used the debugger cause as Ryan said it him self a year ago that it is still shitt.</p>