title: SOAP: Cannot assign requested address
body: <p>This is my receiver code:</p>
  
  <pre><code>import socket
  import time
  
  IP = '192.168.1.99'
  PORT = 8084
  
  DEBUG = False
  
  # Printing is only enabled in debug mode
  def print_(*args):
      if DEBUG:
          print(*args)
  
  def get_ms():
      ms = int(round(time.time() * 1000))
      return ms
  
  if __name__ == "__main__":
      s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      s.bind((IP, PORT))
      s.listen(1)
      conn, addr = s.accept()
      while 1:
        data = conn.recv(1024)
        if not data: break
        text, ts = data.decode('utf-8').split()
        delay = get_ms() - int(ts)
        response = 'ACK ' + str(text) + ' ' + str(delay) + ' ' + str(get_ms())
        # Simulate server processing delay
        time.sleep(0.008)
        conn.send(response.encode('utf-8'))
  
      conn.close()
  </code></pre>
  
  <p>After I run it I get an error:</p>
  
  <pre><code>ERROR: Cannot assign requested address
  </code></pre>
  
  <p>If I run the receiver and sender code on same RPI I don't get this problem, but when I try to connect with a different RPI i get the error.</p>