Cant be connected between two computers in the same Lan with sockets
<p>I have a server-client that work wonderfull when im trying to use them on my own machine. But - when im trying to use them on two different machines on the same Lan, it didnt work!
Here is  my connection:</p>

<pre><code>Lan = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  # Creates the socket object
Lan.connect(('localhost', port))
</code></pre>

<p>I dont understand why should it be a problem</p>

<p>When you are binding your socket, it gets bound to certain network interfaces, one of which is the loopback interface which is only available from your local computer.  You're likely not binding to your actual network interface controller (NIC)</p>

<p>You want INADDR_ANY when you bind, though you didn't say what programming language, so I don't know specifically how to tell you to do it.</p>

<p>More info here:</p>

<p><a href="http://stackoverflow.com/questions/16508685/understanding-inaddr-any-for-socket-programming-c">understanding INADDR_ANY for socket programming - c</a></p>

python sockets