See this page for why I wrote this.
The classes contained don't offer a whole lot, but there are some useful
bits.
IPAddressUtil
-
GetAddress: Returns an IPAddress based on a byte array representation of
an IP address. v1.1 of the framework supports a constructor that takes
the same parameter.
-
GetAddressBytes: Returns a byte array representation of an IP
address. Takes an IPAddress or dotted-IP string.
-
GetAddresses: Returns an array of dotted-IP addresses or IPAddress
objects based on the start and end IP addresses passed to it (strings or
IPAddresses).
-
GetRangeCount: Returns the number of IP addresses in a range. Takes
strings or IPAddresses.
Ping
-
PingHost: Pings a host and returns true/false based on success.
Only works on XP and above since it uses the WMI Win32_PingStatus class.
Download (Includes help file.)
Source (5k)
Back to dotnet