How can I get the IP address of the server from a JSP page?
Right now, all I can do is request.getLocalName(), which returns the server name, not the IP address?
How can I get the IP address of the server from a JSP page?
Right now, all I can do is request.getLocalName(), which returns the server name, not the IP address?
Actually, for the IP address of the server, you need to use
String serverIP = request.getLocalAddr();