Re: Getting Ip address of the actual client
- From: "David Wang [Msft]" <someone@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 03:40:48 -0700
The network device doing the redirection needs to preserve/forward this
information. If it does not, then obviously there is no way for the server
application to get that information. This is how the anonymous Internet
works.
So, the real question is whether the network device doing the forwarding
preserves this information.
For example, this sample ISAPI Filter code will log the private IP address
*assuming* the network redirecting device forwards that original IP on the
redirected Request.
http://blogs.msdn.com/david.wang/archive/2005/09/28/HOWTO_ISAPI_Filter_which_Logs_original_Client_IP_for_Load_Balanced_IIS_Servers.aspx
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Hariprasad" <Hariprasad@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0E25A2EA-7DC3-4B01-A78E-2FC96BF88A07@xxxxxxxxxxxxxxxx
How can I get IP address of the requested client?
When I am using request.servervariables('remote_addr'), I am getting
public
IP, but not the actual client IP.
My application is hosted on public IP 202.63.107.242, and through IP
forwarding it was being redirected to 192.168.100.147. How to get the
requested client's private IP address, if the requestor is within the
organisation (there is a firewall)
.
- Prev by Date: Re: Supressing Public ASP Error Codes
- Next by Date: Re: Getting Ip address of the actual client
- Previous by thread: Re: Supressing Public ASP Error Codes
- Next by thread: Re: Getting Ip address of the actual client
- Index(es):
Relevant Pages
|