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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -