title: Socat Raspberry Pi serial to TCP/IP Problems
body: <p>I'm trying to connect my PC with serial port of RPi via TCP/IP with socat.</p>
  
  <pre><code>socat PTY,link=/dev/ttyAMA0 TCP:127.0.0.1:10001
  </code></pre>
  
  <p>But get a message:</p>
  
  <pre><code>socat[3509] E connect(5, AF=2 127.0.0.1:10001, 16): Connection refused
  </code></pre>
  
  <p>What am I doing wrong?</p>