How do you get the source domain using HttpServletRequest? Source domain is the requester\'s domain.
Thanks.
Hostname request
InetAddress ip = InetAddress.getLocalHost(); String hostname = ip.getHostName(); out.print("Your current IP address : " + ip+"\n"); out.print("Your current Hostname : " + hostname);