Trading Bots

How to Configure Binance API IP Whitelisting

Published on 2026-03-22 | 5 min

Learn how to configure Binance API IP whitelisting and why it matters for security.

Setting up IP whitelisting for your Binance API is a critical security measure. Once configured, only requests from specified IP addresses are accepted — even if your API Key is leaked, attackers cannot use it from other IPs.

Sign up for Binance and create an API Key. We recommend downloading the Binance app to manage security settings.

Why Configure an IP Whitelist

If your API Key leaks (for example, accidentally pushed to GitHub), an attacker could operate your account. Without IP whitelisting, they can use your Key from anywhere.

With an IP whitelist, even if the Key is compromised, requests from non-whitelisted IPs are rejected, dramatically reducing security risk.

How to Configure

Step 1: Log in to Binance and go to the API Management page.

Step 2: Find the API Key you want to configure and click edit.

Step 3: Under "IP Access Restriction," select to restrict to trusted IPs only.

Step 4: Enter the IP addresses to add. You can add multiple IPs.

Step 5: Save settings.

How to Find Your IP Address

If your trading bot runs locally: Search "my ip" in your browser for your current public IP.

If on a cloud server: Check the server's public IP address.

Note: Home broadband IPs are usually dynamic and may change periodically. If your IP changes and the whitelist isn't updated, API requests will be rejected.

Dealing with Dynamic IPs

If your IP changes frequently, solutions include:

Use a cloud server with a static IP to run your trading program.

Contact your ISP to request a static IP (may cost extra).

If a static IP isn't feasible, you can temporarily skip IP whitelisting, but be extra careful with API Key security.

Maximum Number of IPs

Binance allows adding multiple IP addresses per API Key (typically up to about 30). If your program runs on multiple servers, add all their IPs.

Important Notes

Update the whitelist whenever your server IP changes, or your program won't work.

If withdrawal permissions are enabled, IP whitelisting is mandatory — Binance requires it.

Periodically review whitelisted IPs and remove any no longer in use.