Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IPAddress.Broadcast Field

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

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

public static readonly IPAddress Broadcast

The Broadcast field is equivalent to 255.255.255.255 in dotted-quad notation.

The following example prints the Broadcast address to the console.

public void PrintBroadcastAddress()
{
  // Get the IP Broadcast address and convert it to string. 
  string ipAddressString = IPAddress.Broadcast.ToString();
  Console.WriteLine("Broadcast IP address: {0}", ipAddressString);
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft