C# Programmation Réseau: Trouver un Serveur par son nom

  
using System;
using System.Net;
class AddressSample {
    public static void Main() {
        IPHostEntry ihe =  Dns.GetHostByName(Dns.GetHostName());
        IPAddress myself = ihe.AddressList[0];
       …