IPAddress.Broadcast Field

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

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


Public Shared ReadOnly Broadcast As IPAddress
public static readonly IPAddress Broadcast


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


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


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.