Web Connection
How to determine wwrequestlog.remoteaDDR
Gravatar is a globally recognized avatar based on your email address. How to determine wwrequestlog.remoteaDDR
  Josh Klein
  All
  Mar 10, 2021 @ 07:42am

How does Web Connection determine the user's IP address when logging it into WWRequestLog.remoteAddr ?

Thanks,

Josh

Gravatar is a globally recognized avatar based on your email address. re: How to determine wwrequestlog.remoteaDDR
  Rick Strahl
  Josh Klein
  Mar 10, 2021 @ 01:33pm

Yes it's REMOTE_ADDR server variable, but you can get it with:

lcIp = Request.GetIpAddress()

This also looks for Proxy IP Addresses - HTTP_X_FORWARDED_FOR when using a reverse proxy for a load balancer for example and returns the original Ip.

+++ Rick ---

© 1996-2021