title: Receiving data on socket (ICMP)
body: <p>I have made a look into the socket module of Python and wanted to try out some things. But unfortunately I'm not even able to receive some data (always socket.timeout is raised on recvfrom()). Here is the current state:</p>
  
  <pre><code>import socket
  
  connection = socket.socket(proto = socket.IPPROTO_ICMP, type = socket.SOCK_RAW)
  connection.settimeout(1)
  connection.sendto(b'', ('8.8.8.8', 80))
  connection.recvfrom(1)
  connection.close()
  </code></pre>
  
  <p>All my tries to receive just a simple reply from this server failed. Maybe somebody can tell me how to do this.</p>