c# - "REMOTE_ADDR" returning the same IP -
i'm trying figure out why i'm being returned 1 ip address when call request.servervariables["remote_addr"]. here's code:
var ip = context.request.servervariables["http_x_forwarded_for"]; if (string.isnullorempty(ip)) { ip = context.request.servervariables["remote_addr"]; } return ip;
i have 22,000 records return same ip address. i've tested x_forwarded_for , http_client_ip locally only, , both come null. i'm wondering if of have clue why happening? i'm trying rough estimate of client located. thanks.
Comments
Post a Comment