title: Communication between two programs on same computer – How?
body: <p>I don’t know how to begin. After Googling, I’ve found this <a href="https://stackoverflow.com/questions/687868/sending-and-receiving-udp-packets-between-two-programs-on-the-same-computer">here</a>:</p>
  
  <pre><code>//This is how you do it (kudos to sipwiz)
  UdpClient udpServer = new UdpClient(localpt); 
  
  //This is what the proprietary (see question) sender would do (nothing special) 
  //!!! The following 3 lines is what the poster needs...
  //(and the definition of localpt, of course)
  UdpClient udpServer2 = new UdpClient();
  udpServer2.Client.SetSocketOption(
      SocketOptionLevel.Socket,
      SocketOptionName.ReuseAddress, true);
  
  udpServer2.Client.Bind(localpt);
  </code></pre>
  
  <p>But I don’t know what else I need. I tried an example from <a href="http://www.java2s.com/Code/CSharp/Network/BetterUdpClient.htm" rel="nofollow noreferrer">here</a>, but got an error message: <em>"An existing connection was forcibly closed by the remote host."</em></p>
  
  <p>How do I proceed?</p>