IPAddress.Broadcast Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Shared ReadOnly Broadcast As IPAddress
public static readonly IPAddress Broadcast

Remarks

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

Examples

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
      // Get the IP Broadcast address and convert it to string.
      string BroadcastIpAddressString = IPAddress.Broadcast.ToString();

      outputBlock.Text += "Broadcast IP address: ";
      outputBlock.Text += BroadcastIpAddressString;
      outputBlock.Text += "\n";

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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