Set Trusted IP Ranges for Your Org
To help protect your Salesforce data from unauthorized access, specify a list of IP addresses from which users can log in without receiving an identity verification challenge.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: all editions |
| User Permissions Needed | |
|---|---|
| To change network access: | Manage IP Addresses |
If you use IP allowlists on Hyperforce, consider a preferred alternative such as implementing mTLS or allowing domains.
With trusted IP ranges, if a user tries to log in from an untrusted IP address, Salesforce challenges them to verify their identity.
As of Winter ’26, Salesforce enforces limits for trusted IP ranges. You can’t add IP ranges that exceed this limit. If your trusted IP ranges already exceeded the limit before this change, Salesforce can challenge users for device activation even if they’re within your org’s range. For more information, see Device Activation.
Here are the limits for IPv4 and IPv6 addresses. If you use IPv4-mapped IPv6 addresses, the IPv4 limit applies.
| IP Address Type | Limit |
|---|---|
| IPv4 | 16,777,216 |
| IPv6 | 2^99 (2 to the power of 99) |
When calculating the total number of IP addresses, Salesforce doesn’t count private
IP addresses in this range: 10.0.0.0 to 10.255.255.255.
For more information on private IP addresses, see RFC 1918 from the Internet Engineering Task Force. To make sure
that private IP addresses are excluded, add them as a separate range entry.
To verify a user's identity, Salesforce uses the highest-priority identity verification method available. Here's the order that Salesforce follows for verification methods.
- Built-in authenticator registered with the user’s account, such as Touch ID or Windows Hello
- U2F security key registered with the user’s account
- Push notification or location-based automated verification with the Salesforce Authenticator mobile app connected to the user’s account
- Time-based one-time password (TOTP) generated by a mobile authenticator app connected to the user’s account, such as Google Authenticator™
- One-time password (OTP) sent via SMS to the user’s verified mobile device
- OTP sent via email to the user’s registered email address
Manage Trusted IP Ranges
To prevent users from logging in to Salesforce from untrusted IP addresses, specify allowed IP ranges for your users at the profile level. When you define IP address restrictions for a profile, a login from any other IP address is denied. See Restrict Login IP Addresses in Profiles.
-
From Setup, in the Quick Find box, enter Network Access, and
then select Network Access.
If your org was activated before Salesforce introduced this feature in December 2007, Salesforce populated your org’s trusted IP address list in December 2007, when this feature was introduced. That process added the IP addresses from which trusted users had already accessed Salesforce during the past six months.
- Click New.
-
Enter a valid IP address in the Start IP Address field and a
higher, valid IP address in the End IP Address field.
The start and end addresses define the range of allowable IP addresses from which users can log in, including the start and end values. To allow logins from a single IP address, enter the same address in both fields.
A range can include either IPv4, IPv4-mapped IPv6 addresses, or IPv6 addresses. An IP address range can’t include multiple types of addresses. For example, ranges like
255.255.255.255to::1:0:0:0and::to::1:0:0:0aren’t allowed.- The range of IPv4 addresses is
0.0.0.0to255.255.255.255. - The range of publicly accessible IPv6 addresses is
::1:0:0:0toffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff. - IPv4-mapped IPv6 addresses allow an IPv6-enabled application to communicate with
IPv4-only devices. To accomplish this, the IPv4 address is embedded in the IPv6
address format. These addresses are represented as IPv4 addresses in the Salesforce
user interface and in API.
The syntax for an IPv4-mapped IPv6 address is
::ffff:a.b.c.d, wherea.b.c.dis the decimal representation of the IPv4 address. For example, the IPv4-mapped IPv6 address of192.0.2.128is::ffff:192.0.2.128. So the range of IPv4-mapped IPv6 addresses is::ffff:0.0.0.0to::ffff:255.255.255.255.
- The range of IPv4 addresses is
- Optionally, enter a description for the range. For example, if you maintain multiple ranges, enter details about the part of your network that corresponds to this range.
- Save your changes.
-
To remove a Trusted IP range, click Del.
If you remove all trusted IP ranges from the Network Access Setup page, all users who can access your org receive a device activation challenge.

