Hi there,
you cannot get the clients' local IP address with request.getRemoteAddr()
though.
It means that if they use a proxy server, you will get the proxy
server's IP address.
Fumitada
===
To unsubscribe: mailto [EMAIL PR
you can use this line of code...
String ipAddr = (request.getRemoteHost());
- Original Message -
From: "Marcos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 1:02 AM
Subject: How to get ip address using jsp
> Hi!!
> I
n Systems
> 480.317.8549
>
> -Original Message-
> From: Marcos [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 10:02 AM
> To: [EMAIL PROTECTED]
> Subject:How to get ip address using jsp
>
> Hi!!
> I need to get the client's ip addre
You can look at the HTTP headers in jsp.
If the client is behind a firewall, you will not get the correct IP, but it
would be the ip of the firewall.
The SnoopServlet code prints out the IP using
out.println("Remote Addr: " + request.getRemoteAddr());
Check it out.
Regards
Shahed.
]]
Sent: Wednesday, February 07, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject:How to get ip address using jsp
Hi!!
I need to get the client's ip address using jsp pages.
Is that possible?
Thanks in advance
=
Hi!!
I need to get the client's ip address using jsp pages.
Is that possible?
Thanks in advance
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "