PDA

View Full Version : گرفتن IP Address سیستم



alexmcse
دوشنبه 14 بهمن 1392, 13:37 عصر
using System;
using System.Windows.Forms;
using System.Net;
private void button1_Click(object sender, System.EventArgs e)
{
IPAddress[] ipList =
Dns.GetHostAddresses(Dns.GetHostName());

Text = "IP Address My PC : " + ipList[3].ToString();
}
}