C# IPAddress Broadcast

Description

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

Syntax

IPAddress.Broadcast has the following syntax.


public static readonly IPAddress Broadcast

Example


using System;/* w  w  w. j av  a 2s  .  co m*/
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {
      string ipAddressString = IPAddress.Broadcast.ToString();
      Console.WriteLine("Broadcast IP address: {0}", ipAddressString);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient