Listening for ARP requests
问题 Can someone explain to me how to listen to ARP requests in VB.net or C#? I need to capture the ARP request and obtain the IP address of the requester. 回答1: At worst you could just process the output of arp -a run periodically. EDIT: I understand this does not answer the OP, but FYI due to the related answer listed on the RHS, you can obtain the equivalent of arp -a programmatically. Here's my VB.NET version of the C# code listed at that answer: Imports System Imports System.Runtime