IP 로 컴퓨터 이름 알아오기.

using System.Net;

 private void button1_Click(object sender, System.EventArgs e)
  {
   IPAddress serveIP = IPAddress.Parse(this.textBox1.Text);
   IPHostEntry serhost = Dns.GetHostByAddress(serveIP);
   this.textBox2.Text = serhost.HostName.ToString();

  }

+ Recent posts