C# IPAddress IPv6Loopback
Description
IPAddress IPv6Loopback
Provides the IP loopback address.
This property is read-only.
Syntax
IPAddress.IPv6Loopback
has the following syntax.
public static readonly IPAddress IPv6Loopback
Example
Provides the IP loopback address. This property is read-only.
using System;// w ww . jav a 2s. c o m
using System.Net;
using System.Net.Sockets;
public class Example
{
public static void Main()
{
IPAddress a = IPAddress.IPv6Loopback;
string ip = a.ToString();
Console.WriteLine(ip);
}
}
The code above generates the following result.