헤르메스 LIFE

[Source] LocalHost, HostAddress 본문

JSP&JavaScript&HTML

[Source] LocalHost, HostAddress

헤르메스의날개 2016. 6. 15. 09:16
728x90



<%@ page import="java.net.*" %>
<% 
InetAddress Address = InetAddress.getLocalHost(); 
String IP = Address.getHostAddress();
%>
<html>
 <head>
  <title> </title>
 </head>

 <body>
 IP Address : <%=IP%>
 </body>
</html>






728x90