On Fri, 7 Feb 2003, Mark Galbreath wrote: > See java.net.InetAddress. This should do exactly what you want.
Shouldn't need to, though. The Servlet API has getRemoteAddr() and getRemoteHost() (although I have seen times where the latter returned the IP address instead of the host name, probably because it couldn't get it; of course, in those cases, java.net.InetAddress might not work either). However, the more important issue is that the host name will suffer from the same problems as mentioned for the IP address (e.g. when someone's behind a proxy). > -----Original Message----- > From: Jen > Sent: Friday, February 07, 2003 2:15 PM > > Can I get the domain name the request coming from? > Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html