In HttpServletRequest there are two methods
a. getRemoteAddr()
b. getRemoteHost()
which will provide the necessary information.
Actually in request header following information is stored.
Ip address of client m/c = request.getRemoteAddr();
Hostname of client = request.getRemoteHost()
a. getRemoteAddr()
b. getRemoteHost()
which will provide the necessary information.
Actually in request header following information is stored.
Ip address of client m/c = request.getRemoteAddr();
Hostname of client = request.getRemoteHost()
Post a Comment