<%@ page contentType="text/html;charset=gb2312" %>
<% 
  String remoteAddr = request.getRemoteAddr();
  String remoteHost = request.getRemoteHost();
  int serverPort = request.getServerPort();
 %>
<html>
<body>
你的IP地址为：<%=remoteAddr %><br>
你的主机名为：<%=remoteHost %><br>
服务器的端口号为：<%=serverPort %><br>
</body>
</html>
