title: Port Forwarded Python Socket Error (SERVER)
body: <p>I am currently working on a <strong>Python</strong> project to control my PC remotely from across networks. Currently I have a portmap.io connection set up, (IP: 193.xxx.xxx.xx with port 1234, I’m using an OpenVPN)
  When I run my Python script:</p>
  
  <pre><code>import socket
  from os import system, name
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  HOST = “193.xxx.xxx.xx”
  PORT = 1234
  s.bind((HOST,PORT))
  s.listen(1)
  conn, addr = s.accept()
  s.send(b”Connection established”.encode(“utf-8”))
  </code></pre>
  
  <p>When I run this Python script, I get this error:</p>
  
  <blockquote>
    <p>OSError: [WinError 10049] The requested address is not valid in its context</p>
  </blockquote>
  
  <p>I’m almost 85% sure this is because you can’t use bind() on an ip, so what should I do? The socket needs to go across networks.</p>