title: Can't access device through network
body: <p>I'm trying to interface a device with python. 
  The device is connected to another machine in the same network (the university network) and I know it's Port number.</p>
  
  <p>I can access the device from the PC where it is plugged with the following code:</p>
  
  <pre><code>dev = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  dev.connect(('137.195.53.140',51019))
  </code></pre>
  
  <p>where '137.195.53.140' is the PC ip, and 51019 is the port number.</p>
  
  <p>However, if I try the same from another machine, ipython gets stack at the command "dev.connect(('137.195.53.140',51019))", and when I abort the evaluation and then look at "dev" I get this:</p>
  
  <pre><code>&lt;socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('137.195.204.85', 50393)&gt;
  </code></pre>
  
  <p>where '137.195.204.85' is the IP of the machine I'm using, and the port number I've no idea.</p>
  
  <p>Since ssh works with no problem within this network, I thought that my approach for accessing the device would have worked as well.</p>
  
  <p>Does anyone have any clue for this? I'm sorry if I haven't been clear, but I know absolutely nothing of networking (and not very much of Python either tbh).</p>