title: PYTHON - UDP listening without knowing the server
body: <p>using python2.X (for Linux (++) and Windows (+))
  I'm trying to create a python client, to listen to an adress and a port.
  The messages are sent by an app on a specific adress and a specific port, but I don't know how it is written. I'm just sure it is functionnal and it uses UDP protocole.</p>
  
  <p>So, I've written this code to receive the messages :</p>
  
  <pre><code>import socket
  #---socket creation
  connexion = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  
  #---Bind
  try:
      connexion.bind(('', 10015))
  except socket.error:
      print "connexion failed"
      connexion.close()
      sys.exit()   
  
  #---testing
  while 1:
      data, addr = connexion.recvfrom(1024)
      print "messages : ", data
  </code></pre>
  
  <p>At this point, there is no error running it, but the code stops at this line :</p>
  
  <pre><code>data, addr = connexion.recvfrom(1024)
  </code></pre>
  
  <p>and nothing happens... I think I'm not connected and can't receive messages but I don't know why.
  I tried to change the adresse by : '192.168.X.X', but it's the same.</p>
  
  <p>If anyone could help me, that would be great. I'm not very comfortable why python...
  PS : sorry for my english.</p>