Appearance
IpAddressExtensions Class
Definition
Extension methods for the IpAddress class
- Namespace:
JASE.Extensions - Assembly:
JASE.Network.dll
Methods
| Name | Description |
|---|---|
IPAddress GetBroadcastAddress(IPAddress address, IPAddress subnetMask) | Returns the broadcast address for a given IP and SUBNET |
IPAddress GetNetworkAddress(IPAddress address, IPAddress subnetMask) | Returns the network address for a given IP and SUBNET |
bool IsInSameSubnet(IPAddress address2, IPAddress address, IPAddress subnetMask) | Compares two IP Addresses to a subnet and returns if they are on the same network |
bool IsInternal(IPAddress ip) | An extension method to determine if an IP address is internal, as specified in RFC1918 |
bool IsIp(string address) | Checks if string is a valid IPV4/IPV6 address |
bool IsIpV4(string address) | Checks if string is a valid IPV4 address |
bool IsIpV6(string address) | Checks if string is a valid IPV6 address |
bool IsPrivateIpV6(IPAddress ip) | Checks if IPV6 address is in the defined private space |
bool IsPublic(IPAddress ip) | Checks IP routability |
bool IsSameAs(IPAddress ip, string address) | Compares IPAddress to an address string |
long ToIpNumber(string address) | Converts an IPv4 address represented as a string into its corresponding long value. |
string ToIpString(IPAddress ip) | Returns an IP address formatted as a string |