title: Socket could not be created. Operation not permitted (udp)
body: <p>I'm having trouble with this line of code that would not run without sudo.</p>
  
  <pre><code>try:
  
      s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_UDP)
  
  except socket.error, msg:
  
      print 'Socket could not be created. Error Code: ' + str(msg[0]) + ' Message ' + msg[1]
  
      sys.exit()
  </code></pre>
  
  <p>I get :</p>
  
  <pre><code>Socket could not be created. Error Code : 1 Message Operation not permitted.
  </code></pre>
  
  <p>Does anybody have a solution for this? Thanks in advance</p>