getRemoteAddr() Method Example

getRemoteAddr() method is defined in ServletRequest interface from javax.servlet package inherited by HttpServletRequest. With this method, the servlet programmer can know the IP address of the client from which the request came. Let us see what Java API says about this method. String getRemoteAddr(): Returns the Internet Protocol (IP) address of the client or last …

getRemoteAddr() Method Example Read More »