%@ page import="java.net.*" %> <% String addr = "error"; try { InetAddress inetAddress = InetAddress.getLocalHost(); addr = request.getRemoteAddr(); } catch (UnknownHostException e) { e.printStackTrace(); } %>