Hello everyone. Recently needed to write a utility to monitor internet traffic to their own needs, but the methods to intercept the traffic is not found. Help, please, how this can be realized
Surely you don't literally mean "to monitor internet traffic". Internet
traffic is, by definition, on the Internet...there's no one place that a
program can be to monitor all Internet traffic.
Perhaps you mean instead to monitor outbound traffic on the local PC,
attempting to distinguish between traffic destined for the Internet versus
traffic that will stay within the LAN?
If so, then you don't have a C#/.NET question, because .NET doesn't
support that. The usual mechanism for doing this at a high-level is using
a layered service provider in Winsock, but even that requires unmanaged
code.
I mean program on the local PC, that monitor all incoming and outgoing Internet traffic.
For example, you open in the Internet Explorer http://microsoft.com, and program determines that you go to the microsoft.com site, and capture all transmitted data.
P.S.: Sorry for my English