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();
1.4m articles
1.4m replys
5 comments
57.0k users