System.Net.Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString(); 最近發現上述的寫法在Windows 2008/Windows 7上會有問題! Vista以後的Windows ...
blog.darkthread.net