title: Simple Python UDP Server: trouble receiving packets from clients other than localhost
body: <p>So, the very simple code that I'm trying to use is here: <a href="http://wiki.python.org/moin/UdpCommunication" rel="noreferrer">http://wiki.python.org/moin/UdpCommunication</a></p>
  
  <p>(also here):
  Sending:</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>Receiving:</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
  </code></pre>
  
  <p>The code works fine when I run both applications on my computer.  I put the sending code on my laptop with:</p>
  
  <pre><code>UDP_IP="IP address for my computer"
  </code></pre>
  
  <p>Everything else is the same.  Yet, nothing happens.  What am I doing incorrectly?  I used wireshark and determined that the packet is being sent and received; however, the python program isn't receiving the packet.  I'm very confused.</p>
  
  <p>Any help is much appreciated.
  Thanks in advance.</p>