Difference between getRemoteAddr() and getRemoteHost()

getRemoteAddr() vs getRemoteHost()

Both getRemoteAddr() vs getRemoteHost() are defined in ServletRequest interface and serves the Servlet Programmer to retrieve the client system particulars from where the request came. They differ slightly in the output. 1. getRemoteAddr() returns a string containing the IP address (in format like IPiv, 127.0.0.1) of the client. 2. getRemoteHost()…