title: Running a C Server on Mac. How to Connect to it on Terminal for debugging purposes.
body: <p>Suppose I've managed to get the server up and running by executing:</p>
  
  <p>./foo [portno] [args]</p>
  
  <p>How do I telnet into the server on the local machine? </p>
  
  <p>I tried the following:</p>
  
  <ol>
  <li><p>telnet localhost [portno] 
  ERROR: localhost: nodename nor servname provided, or not known</p></li>
  <li><p>telnet [portno]
  ERROR: Trying 0.1.226.65...
  telnet: connect to address 0.1.226.65: No route to host
  telnet: Unable to connect to remote host</p></li>
  </ol>