IPAddress.Broadcast Field

Provides the IPv4 broadcast address. This field is read-only.

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

'Declaration
Public Shared ReadOnly Broadcast As IPAddress

The Broadcast field is equivalent to 255.255.255.255 in dotted-decimal notation for IPv4.

The following example prints the IPv4 Broadcast address.


' gets the IP Broadcast address and convert it to string.
Dim IpAddressString2 As [String] = IPAddress.Broadcast.ToString()
outputBlock.Text &= "Broadcast IP address: "
outputBlock.Text &= IpAddressString2
outputBlock.Text &= vbCrLf


Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: