Export (0) Print
Expand All

IPAddress.Broadcast Field

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

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

public static readonly IPAddress Broadcast

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

The following example prints the IPv4 Broadcast address.


      // 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";



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:
© 2014 Microsoft