> **Source:** https://knowledge.leegality.com/document-execution/api/security/ip-whitelisting > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # IP Whitelisting IP whitelisting ensures secure communication between your infrastructure and Leegality by restricting network access to specific IP addresses. IP whitelisting works in two directions: 1. **Whitelisting Your IPs in Leegality**: Restrict which of your servers can make API calls to Leegality 2. **Whitelisting Leegality IPs in Your Infrastructure**: Allow Leegality to send webhooks and access your endpoints ## Whitelisting Your IPs in Leegality Dashboard Configure which IP addresses from your infrastructure can access Leegality APIs. #### Add Your Server IPs 1. Log in to your Leegality dashboard 2. Navigate to **Settings** > **API** 3. In **Whitelisted IPs** enter your server's public IP address 4. Click **+** to add the IP address. Repeat for all servers that need API access. > **Caution — Important** > > Once enabled, only API requests from whitelisted IPs will be accepted. Ensure all necessary server IPs are added before enabling. #### IP Address Format The Leegality dashboard accepts **valid IPv4 addresses only**. **Format**: `xxx.xxx.xxx.xxx` **Example**: ``` 203.0.113.10 ``` **To whitelist multiple servers**: Add each server's IP address separately by clicking the **+** button after each entry. ## Whitelisting Leegality IPs in Your Infrastructure If your infrastructure has IP-based firewall rules, whitelist these Leegality IPs to receive webhooks and allow file uploads. #### Production Environment IPs Whitelist these IPs for production integrations: ``` 15.207.242.28 3.6.114.195 3.7.137.254 ``` #### Sandbox Environment IPs Whitelist these IPs for sandbox/testing: ``` 65.2.154.131 ``` ## IP Whitelisting Errors | Code | Message | Description | Solution | |------|---------|---------------------|----------| | `173` | `IP verification failed.` | The IP address making the API request is not in the authorized whitelist configured for your API token. | Add your public IPs in Leegality Dashboard via [**Settings → API → Whitelisted IPs**](https://knowledge.leegality.com/document-execution/settings/account-level/API/how-to-whitelist-ip). Ensure all server IPs are whitelisted before enabling the feature — once active, only whitelisted IPs can make call to Leegality APIs. | | — | `Please enter valid IPv4 address.` | The IP address entered in the dashboard is not a valid IPv4 format. | Use the format `xxx.xxx.xxx.xxx` (e.g. `203.0.113.10`). IPv6 addresses and incomplete values like `192.168.1` are not supported. |