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();
2.1m questions
2.1m answers
60 comments
57.0k users