 <p>@TeckSupport how about if you set up a function that pulls and writes the IP.dst:</p> <pre><code>from scapy.all import * fob = open("IP.txt","w") def ip_dst(pkt): fob.write(pkt[IP].dst+'\n') sniff(filter='ip',count=10,prn=ip_dst) fob.close() </code></pre> <p>Is this what you were looking to do?</p>