IPAddress Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides an Internet Protocol (IP) address.


Namespace:  System.Net
Assembly:  System (in System.dll)

public ref class IPAddress

The IPAddress type exposes the following members.

Public methodIPAddress(array<Byte>[]()[][])Initializes a new instance of the IPAddress class with the address specified as a Byte array.
Public methodIPAddress(Int64)Initializes a new instance of the IPAddress class with the address specified as an Int64.

Public methodEqualsCompares two IP addresses. (Overrides Object..::..Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAddressBytesProvides a copy of the IPAddress as an array of bytes.
Public methodStatic memberGetDefaultLocalAddressRetrieves an IP address that is the local default address.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberParseConverts an IP address string to an IPAddress instance.
Public methodToStringConverts an Internet address to its standard notation. (Overrides Object..::..ToString()()()().)

Public fieldStatic memberAnyProvides an IP address that indicates that the server must listen for client activity on all network interfaces. This field is read-only.
Public fieldStatic memberLoopbackProvides the IP loopback address. This field is read-only.

The IPAddress class contains the address of a computer on an IP network.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.