SocketElement.IPProtectionLevel Property

.NET Framework (current version)

Gets or sets a value that specifies the default System.Net.Sockets.IPProtectionLevel to use for a socket.

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

[ConfigurationPropertyAttribute("ipProtectionLevel", DefaultValue = IPProtectionLevel.Unspecified)]
public IPProtectionLevel IPProtectionLevel { get; set; }

Property Value

Type: System.Net.Sockets.IPProtectionLevel

The value of the System.Net.Sockets.IPProtectionLevel for the current instance.

The IPProtectionLevel property enables configuration of a restriction for an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix. This option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This option has three defined protection levels specified in the System.Net.Sockets.IPProtectionLevel enumeration.

.NET Framework
Available since 4.0
Return to top