http://community.csdn.net/Expert/topic/3553/3553732.xml?temp=.4749414

解决方案 »

  1.   

    string strIP = Current.Request.UserHostAddress;
      

  2.   

    string hostname=Dns.GetHostName();
    try
    {
    IPHostEntry hostip=Dns.Resolve(hostname);
    IPAddress[] addrList=hostip.AddressList;
    statusBar1.Text="本机IP地址:"+addrList[0];
    }
    catch(SocketException)
    {
    MessageBox.Show("IP address read error!");
    }
      

  3.   

    Current是什么对象,编译器不认识。
      

  4.   

    SystemInformations.HostName
    Dns.HostName
    可能我属性记不太清楚,你去查一下肯定有的