It is my understanding that IP is not really a reliable indicator of
location anyway, particularly for dial-up users. Even if you do manage to
figure out the location for a given IP, the odds are pretty good that the
location will be incorrect. For example anyone who uses AOL to connect will
be assigned an IP that places them in Virginia (because that is where the
gateway is), regardless of where they are actually located.
-----Original Message-----
From: Bo Xu [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 11, 2000 12:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Help: IP Address...........
Hi siva,
0
I think you can use the following to get IP of client:
HttpServletRequest.getRemoteAddr()
1.
I asked the same question several month ago, and from the
repling emails, if your client use a "proxy" to connect to your servlet,
perhaps you will get the IP of "proxy"(not the IP of your client).
So now I don't use this way, now I use TCP socket to get IP
of my client.
Bo
Sept.11, 2000
siva baskaran wrote:
> Hai Everybody
>
> I am hv a problem, hope u will help using *request* interface we can get
> the client's IP address
> get the Client's location with that IP Address.ie., from where he/she is
> requesting ..
>
> Thanx in Advance
>
> With Regards
> -siva baskar
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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
___________________________________________________________________________
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