title: one way UDP communication
body: <p>I am trying to establish UDP conection between 2 of my computers (1 and 2).
  I succeeded in establish UDP connection in which computer 1 is the client ("sending") and computer 2 is the server ("reciving").</p>
  
  <p>Now I am trying to do the opposite: I want computer 2 to be the client and computer 1 to be the server. I am using the same programs as I have written before, however it doesn't work. </p>
  
  <p>When I use Wireshark, I can see the sended messeges from computer 2, however the python doesn't recive them...</p>
  
  <p>Any Ideas?</p>
  
  <p>here is my code:</p>
  
  <p>client:</p>
  
  <pre><code>import socket
  
  IP_robot    = '127.0.0.1'
  port_robot  = 8830
  
  def send_data(V,IP,port):
      my_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      my_socket.connect((IP,port))
  
      MESSAGE=str(V)
      my_socket.send(MESSAGE)
  
      my_socket.close
  
  V="123456"
  send_data(V,IP_robot,port_robot)
  </code></pre>
  
  <p>where in my program IP_robot is the IP of the server.</p>
  
  <p>server:</p>
  
  <pre><code>import socket
  
  IP_commands = "0.0.0.0"
  port_commands = 8830
  
  sock = socket.socket(socket.AF_INET, # Internet
                       socket.SOCK_DGRAM) # UDP
  sock.bind((IP_commands, port_commands))
  
  while True:
      data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes 
      print data
  </code></pre>
  
  <p><strong>edit:</strong>
  I have tried to use TCP and it still dosent work. It seemes that one of my computers refuses to recive it's messges in python... any sugesstions?</p>