I am trying to write a sniffer in java. JCAP package seems to have thefunctionality as an addin. But What is the best method to capture the IP packetsgiven an IP address.