Context.Request.IP returns IPv6 address lately

We are using built in IP Address whitelist rule and all of our users have static IP’s (IPv4) but lately
context.request.ip returns IPv6 for some users (which changes daily) is there a way for us to get IPv4 address instead ?

Thanks.

Hi @trg-admin

The context.request.ip is the address used to make the request. If it is IPv4 that is what you get, and IPv6, that is what you get.

You can either ask your users to use only their IPv4 address, or update your rule to handle IPv6. I suggest the latter, but it is more complex as you will have to handle ranges rather than single addresses.

John