Convertire un indirizzo IP in un HostName

using System;
using System.Net;

namespace TipsTricks
{
          class ConvertIpToHostName
          {

                  static void Main()           
                  {
                         IPHostEntry iph = Dns.Resolve("127.0.0.1");
                         string hostName = iph.HostName;

                         Console.WriteLine(hostName);
                   }
           }
}

Print | posted on domenica 1 agosto 2004 14:04

Copyright © Alessandro MAROTTA RIZZO

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski