How to Whitelist IP Addresses in Salesforce

While working as a Salesforce Admin, the client asked me to restrict access to Salesforce for security reasons. The client wanted users to log in only from the company office network and block access from home or public Wi-Fi.

To meet this requirement, I whitelisted the office IP addresses in Salesforce using trusted IP ranges.

After this setup, users could log in only when they were connected to the office internet. Any login attempt from an unknown IP address was automatically blocked.

In this article, we will learn how to whitelist IP addresses in Salesforce so that users can log in only when they are connected to the defined whitelisted IP addresses.

What is an IP Address in Salesforce?

An IP address is a string of 4 numbers separated by periods; for example, 66.231.80.0 is an IP address. These IP addresses can range from 0.0.0.0 to 255.255.255.255.

In Salesforce, we used a list of specified IP addresses to prevent unauthorized access to the organization’s data. With these IP addresses, users can always log in without receiving a login challenge.

Salesforce support occasionally requests a subset of IP addresses to allow. It is advised that we should allow the entire list of Salesforce IP ranges for seamless access. Narrowing the range of IP addresses would put you at risk of interruptions in access for you and your users.