Utilizza servletRequest.getRemosteAddr() oppure getRemoteHost()