title: How to connect to a python server from outside the local network
body: <p>I want to share data between two computers and both are connected to internet but not on same local network. I want to write to python script for sending data like string. For that we need a server which is ready.</p>
  <pre><code>import socket
  
  s = socket.socket()
  s.bind((&quot;192.168.0.100&quot;,8080))
  
  s.listen()
  
  (client_s, client_add) = s.accept()
  
  data = client_s.recv(1024)
  </code></pre>
  <p>So now the server is ready and it is only accesible by the devices connected in the same local network. So, how to make it possible to access it from computer out of this network</p>