28,391
社区成员
发帖
与我相关
我的任务
分享
<%
IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If IP = "" Then
IP = Request.ServerVariables("remote_host")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档 </title>
</head>
<body>
您的IP地址是: <%=IP%>
</body>
</html>
Dim ip
ip = Request.ServerVariables("remote_host")
response.write(ip)