C# IPAddress IPv6Any

Description

IPAddress IPv6Any The Socket.Bind method uses the IPv6Any field to indicate that a Socket must listen for client activity on all network interfaces.

Syntax

IPAddress.IPv6Any has the following syntax.


public static readonly IPAddress IPv6Any

Example


//w w w .  ja v  a  2 s.com
using System;
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {
        IPAddress any = IPAddress.IPv6Any;
    
        string ipv6Any = any.ToString();
        Console.WriteLine("The IPv6 Any address is: " + ipv6Any);
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient