Hi I am using a payment gateway.To which I have to pass the ip address of the client ( someone using my website) . How to get it? I tried to use the following code when I run my project in local system
and i got some value. But when I checked with https://www.whatismyip.com/ I got some other value. So which is correct? How can I get the correct value? I am using asp.net MVC. is there any change in this code if we are using mvc other than asp.net?