title: What is the second part of the address returned by recvfrom?
body: <p>I'm using those 2 pieces of code from <a href="http://wiki.python.org/moin/UdpCommunication" rel="nofollow">http://wiki.python.org/moin/UdpCommunication</a></p>
  
  <p>The server:</p>
  
  <pre><code>import socket
  
  UDP_IP="127.0.0.1"
  UDP_PORT=5005
  
  sock = socket.socket( socket.AF_INET, # Internet
                        socket.SOCK_DGRAM ) # UDP
  sock.bind( (UDP_IP,UDP_PORT) )
  
  while True:
      data, addr = sock.recvfrom( 1024 ) # buffer size is 1024 bytes
      print "received message:", data,"from", addr
  </code></pre>
  
  <p>The client:</p>
  
  <pre><code>import socket
  
  UDP_IP="127.0.0.1"
  UDP_PORT=5005
  MESSAGE="Hello, World!"
  
  print "UDP target IP:", UDP_IP
  print "UDP target port:", UDP_PORT
  print "message:", MESSAGE
  
  sock = socket.socket( socket.AF_INET, # Internet
                        socket.SOCK_DGRAM ) # UDP
  sock.sendto( MESSAGE, (UDP_IP, UDP_PORT) )
  </code></pre>
  
  <p>In the server, I modified the last line:</p>
  
  <pre><code>        print "received message:", data,"from", addr
  </code></pre>
  
  <p>so it prints the address that the message was sent from.
  On my macbook the port seems to be some random number between 40000 or 65000 (i'm just sure it seems random).</p>
  
  <p>Any idea what this could be ?</p>