IP whitelisting is required only for the production environment. The test environment does not require whitelisting.
- Log in to the Merchant Dashboard. Go to Developers > Two-Factor Authentication under the Secure ID card.
- Select IP Whitelist from the Select 2FA Method drop-down.
- Select Add IP Address.
- Enter the IP address you want to whitelist and select Add IP Address to save.

- Whitelist your IPv4 address only. IPv6 addresses are not supported.
- You can whitelist a maximum of 10 IP addresses.
- Generate your API credentials before you set up two-factor authentication (2FA).
- Ensure that you whitelist a public IP address. Cashfree does not support private IP addresses, including the 10.x.x.x, 172.16.x.x–172.31.x.x, and 192.168.x.x ranges, as these are not accessible over the public internet.