就是HttpRequest 类, 下面的一个属性呀UserHostAddress。这个还用求呀.哈哈.接分拉.
示例
[Visual Basic, C#, JScript] 下面的示例将远程客户端的 IP 地址分配给一个字符串变量。
[Visual Basic] 
Dim ClientIP As String
 ClientIP = Request.UserHostAddress
[C#] 
String ClientIP;
 ClientIP = Request.UserHostAddress;
[JScript] 
var clientIP : String = Request.UserHostAddress

解决方案 »

  1.   

    在dw中这样写,提示错误!
    <span><script language="vb" runat="server" >
    Dim clientip As String
    clientip=Request.UserHostAddress
    </script>
    <%=clientip%></span>错误提示:
     clientip=Request.UserHostAddress        BC30188: 需要声明。是不是要导入命名空间呀?
      

  2.   

    request.servervariables("Remote_Addr")
      

  3.   

    response.write(request.servervariables("Remote_Addr"))
      

  4.   

    谢谢同志们了!要asp.net(vb.net))代码!
      

  5.   

    smoothwood(I try my best)你的好像是asp的代码把!
      

  6.   

    我现在在学习asp.net(vb.net),请包含一下!
      

  7.   

    Dim ClientIP As String
     ClientIP = Request.UserHostAddress
    上面的这段就是VB的语法啊.
      

  8.   

    <%@ Page Language="vb"%>
    <%
        Dim clientip As String
        clientip=Request.UserHostAddress
    %>
    <span>
    <%=clientip%>
    </span>
      

  9.   

    CMIC(大象) (),大哥你的代码可以正常的显示ip!