title: Packets sent with scapy don't arrive and can't be sniffed
body: <p>I have a recurring problem where packets I send with scapy don't arrive. I tried to sniff them using scapy and wireshark, but they don't get sniffed. It's as if they weren't sent, but the script sending them displays the "sent 1 packet" message.</p>
  
  <p>I looked it up and found <a href="https://stackoverflow.com/questions/20184050/scapy-packet-sent-cannot-be-received">this similar question</a> that the problem might be that the packet is sent to the wrong interface. this seems likely, because my scapy's default iface is set to "eth0", and I sniff on my wifi connection. If this is really the problem, how do i set scapy to send &amp; sniff on the wifi connection?</p>
  
  <p>code example:</p>
  
  <pre><code>from scapy.all import *
  
  message = raw_input("enter your message:")
  
  for c in message:
      packet = Ether() / IP(dst = "127.0.0.1") / UDP(sport = 4001, dport = ord(c))
      send(packet)
  
  raw_input()
  </code></pre>
  
  <p>In this script is supposed to send a message to a server by sending empty UDP packets to ports signifying the letters. The script runs fine, I just don't get any packets on my "server", and the packet this script supposedly sends cannot be sniffed.</p>
  
  <p>EDIT: my os is windows 8.1</p>