You can often determine the type of browser from the User-Agent header in the request. Although people can and do forge that header to pretend that their code is a browser.
yeah...you are right... sorry for mis-information. I think this is the correct way to get the remote ip address.. request.getRemoteAddr(); please let me know If I am wrong. Thanks, Krishna.
1) Interface HttpServletRequest, getRemoteUser() - Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.
2) Interface ServletRequest, getRemoteAddr() - Returns the Internet Protocol (IP) address of the client that sent the request.
Thanks.
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
a bit of art, as a gift, the permaculture playing cards