boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

Convert Hostname to IP Address using C#

Updated on     Kisan Patel

If you have a hostname such as google.com, and you need to obtain the IP address then use the Dns.GetHostEntry method.

Namespace:

using System.Net;

Program

class Program
{
    static void Main(string[] args)
    {
        IPHostEntry iphost = System.Net.Dns.GetHostEntry("www.google.com");
        IPAddress[] addresses = iphost.AddressList;
        foreach (IPAddress address in addresses)
        {
            Console.WriteLine("IP Address: {0};", address.ToString());
        }
        Console.ReadKey();
    }

}

Output of the above program…

Hostname-to-IP-Address


C#

Leave a Reply