Get IP address that indicates that the server must listen for client activity on all network interfaces in CSharp

Description

The following code shows how to get IP address that indicates that the server must listen for client activity on all network interfaces.

Example


using System;/*from www.  j a  va  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 »
    Network »




IP
Web Client