知道了 #IF DEFINED PBDOTNET THEN // // 取得服务器的名字 // string ls_hostname // ls_hostname=System.Net.Dns.GetHostName() // //取得客户端的IP地址 System.Web.HttpContext context = system.web.httpcontext.curr……