title: The requested address is not valid in its context in TCP socket communication
body: <p>I want to implement socket communication between two applications running on the same PC. One of the is a Unity application (server). So I wrote the following:</p>
  
  <pre><code>public class Main : MonoBehaviour {
  
      // Use this for initialization
      void Start () {
  
          // Set the TcpListener on port 13000.
          Int32 port = 8800;
          IPAddress localAddr = IPAddress.Parse("192.168.1.1");
  
          // TcpListener server = new TcpListener(port);
          TcpListener server = new TcpListener(localAddr,port);
          Socket socketForClient;
  
          try
          {
              server.Start();
              socketForClient = server.AcceptSocket();
              if (socketForClient.Connected)
              {
                  print("connected");
              }
              else
              {
                  print("not connected");
              }
          }
          catch (Exception e)
          {
              print(e.Message);
          }
  
      }
  
      // Update is called once per frame
      void Update () {
  
      }
  }
  </code></pre>
  
  <p>When I am starting the game I am getting the following: <code>The requested address is not valid in its context.</code> exception. Any help? Which IP / Port should I use if I want server client run on the same PC?</p>