Get IP address that indicates that no network interface should be used in CSharp
Description
The following code shows how to get IP address that indicates that no network interface should be used.
Example
using System;// www.j av a 2 s. c o m
using System.Net;
using System.Net.Sockets;
public class Example
{
public static void Main()
{
IPAddress a = IPAddress.IPv6None;
string ip = a.ToString();
Console.WriteLine(ip);
}
}
The code above generates the following result.