NetworkUtils.IsLocalIpAddress

Checks to see if an IP Address or Domain is a local address

public static bool IsLocalIpAddress(string hostOrIp)

Return Value

true or false

Parameters

hostOrIp
Hostname or IP Address

Remarks

Do not use in high traffic situations, as this involves a DNS lookup. If no local hostname is found it goes out to a DNS server to retrieve IP Addresses.

Overloads:


See also:

Class NetworkUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic