I'm trying to get the URL's of the network traffic, that which website the user had gone through by using the NetworkInterface in c#. I was able to get the total bytes by the following code :
I'm searching for the way to get the network traffic with URL's.
if (!NetworkInterface.GetIsNetworkAvailable())
return;
NetworkInterface[] interfaces
= NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface ni in interfaces)
{
Console.WriteLine(" Bytes Sent: {0}",
ni.GetIPv4Statistics().BytesSent);
Console.WriteLine(" Bytes Received: {0}",
ni.GetIPv4Statistics().BytesReceived);
}