block certain IP addresses

  • Thread starter Thread starter Ignacio Machin \( .NET/ C# MVP \)
  • Start date Start date
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

There is nothing in the framework for this, now there may be a couple of
ways of doing it, first stop should be WMI , take a look at it. another way
may be calling the API directly, but I would bet for WMI first.

do a search for WMI and Win32_NetworkAdapter &
Win32_NetworkAdapterConfiguration

Cheers,
 
Hi, is it possible to block all traffic with an IP address using .NET
Framework?
I wont to write a small program, that runs under win2000/XP and blocks all
traffic with the IP addresses that are in the black list. But looks like the
..NET Framework is the wrong place to look for solution, or am I wrong?

tia
 
Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

There is nothing in the framework for this, now there may be a couple of
ways of doing it, first stop should be WMI , take a look at it. another way
may be calling the API directly, but I would bet for WMI first.

do a search for WMI and Win32_NetworkAdapter &
Win32_NetworkAdapterConfiguration

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top