IPAddress.Broadcast Field


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public static readonly IPAddress Broadcast

Field Value

Type: System.Net.IPAddress

The Broadcast field is equivalent to 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);

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top