C# IPAddress Any

Description

IPAddress Any Provides an IP address that indicates that the server must listen for client activity on all network interfaces. This field is read-only.

Syntax

IPAddress.Any has the following syntax.


public static readonly IPAddress Any

Example


using System;//w  w  w.j  a  v a  2s.  c o m
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {

       Console.WriteLine(IPAddress.Any);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient