java_web/webapp/request.jsp
2024-12-09 22:17:48 +08:00

14 lines
336 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ 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>