Broadcast Field
Collapse the table of content
Expand the table of content

IPAddress.Broadcast Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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



Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft