摘要:
1 using System; 2 using System.Net; 3 using System.Net.Sockets; 4 using System.Text; 5 6 public class SynchronousSocketClient { 7 8 public static void StartClient() { 9 // Data b... 阅读全文
摘要:
(一)第一种方法: //aspx 页面里要写得代码 //aspx.cs 文件下要写得代码string ip = ""; IPHostEntry strHostName = Dns.Resolve(Dns.GetHostName()); ip = strHostName.AddressList[0].ToString(); if (ip == "127.0.0.1") ip = Dns.GetHo... 阅读全文