Get the IP broadcast address in CSharp
Description
The following code shows how to get the IP broadcast address.
Example
using System;//from w ww.j a v a 2s. c o 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.