电脑上怎么样使用ip函数(c#得到本机IP的函数)
收集客户机信息时,需要得到客户机的IP,那么客户端就需要提供自己的本机IP:
usingSystem;usingSystem.Net;usingSystem.Windows.Forms;namespaceMynet{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidbutton1_Click(objectsender,EventArgse){MessageBox.Show(GetMyIP());}///