RT

解决方案 »

  1.   

    <%@ Import NameSpace="System.Net">
    <script language="C#" runat=server>
    IPHostEntry hostInfo = DNS.GetHostByName(txtDomain.Text);
    showmsg.Text=hostInfo.AddressList[0].ToString();
      

  2.   

    string str;
    str=Request.UserHostAddress
      

  3.   

    string strUsersIP=Request.UserHostAddress;
      

  4.   

    dim str as string
    str=Request.UserHostAddress
      

  5.   

    IPHostEntry hostInfo = DNS.GetHostByName(txtDomain.Text);
    showmsg.Text=hostInfo.AddressList[0].ToString();