IPAddress.Broadcast Field

 

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

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

Public Shared ReadOnly Broadcast As IPAddress

Field Value

Type: System.Net.IPAddress

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 Sub PrintBroadcastAddress()
    ' gets the IP Broadcast address and convert it to string.
    Dim IpAddressString As [String] = IPAddress.Broadcast.ToString()
    Console.WriteLine((ControlChars.Cr + "Broadcast IP address : " + IpAddressString))
End Sub 'PrintBroadcastAddress

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