How to get a static IP for your trading API (step by step)

A practical guide to getting a fixed IP address for your broker API and whitelisting it correctly, plus the options that work and the ones that quietly cost you more than they should.

25 June 2026 · Last updated 27 October 2026 · 3 min read

Short answer: You get a fixed address from a static-IP provider (or as a side effect of a VPS or a static plan from your ISP), then register that single address on your broker's API whitelist. Once it is whitelisted, your bot connects from the same address every session and stops getting locked out. The cheapest, lowest-maintenance route is a dedicated static IP you do not have to manage.

Here is the full process, the options ranked by cost and hassle, and the steps to whitelist it.

Your options, ranked

There are four common ways to get a fixed address. They are not equal.

  1. Dedicated static IP from a provider: you get one fixed address, whitelist it, done. Nothing to maintain and the lowest cost, from ₹50 a month plus GST for IPv6 at TrueIP. Best fit for most algo traders.
  2. VPS: a remote server that comes with a static address. Works, but you are paying for a whole machine and managing an OS just to get the IP. Only worth it if you also need to run code 24/7. We break this down in static IP vs VPS for algo trading.
  3. Static IP plan from your ISP: some providers sell a fixed address as an add-on. Often expensive, business-tier only, and tied to one physical location.
  4. VPN with a dedicated IP: works in theory, but shared or rotating exit nodes break whitelisting, and a "dedicated IP" add-on costs extra and adds a hop.

For most traders who already run their algo on their own machine, option 1 is the right call. The rest are paying for things you did not ask for.

Step by step: getting and whitelisting your static IP

1. Get the fixed address

Sign up for a static IP for algo trading, pick IPv6 or IPv4, pay online, and you receive one dedicated address tied to your account within minutes. With TrueIP this is an authenticated proxy endpoint: a host (ipv6-mumbai.trueip.in), port, username and password. Your bot connects to that endpoint over IPv4, and every request to your broker exits from your dedicated static IPv6 or IPv4.

2. Note your exact outbound IP

Whitelisting cares about the address your broker sees, which is your outbound (egress) IP, not your local one. Confirm it before you whitelist so you register the correct value. With a dedicated static IP this is fixed and shown in your dashboard up front.

3. Whitelist it with your broker

Log in to your broker's API or developer console, find the IP whitelist (sometimes under app settings or API security), and add your static address. Save it. Note that some brokers take a few minutes to a few hours to apply the change.

4. Point your bot through the static IP

Configure your trading client or script to route its outbound traffic through the dedicated address (for an authenticated proxy, set the proxy host, port, and credentials in your HTTP client). Now every order leaves from the whitelisted address.

5. Test with a small request

Before going live, fire a low-risk authenticated call (account balance, positions, a tiny test order if your broker has a sandbox). If it succeeds, the whitelist match is working. If it is rejected, double-check the egress IP matches the whitelisted one exactly.

What to avoid

What TrueIP offers

TrueIP is the get-the-address-without-the-hassle option. One dedicated IPv6 address per account, never shared or rotated, hosted on our own Mumbai node under 2 ms from broker APIs, delivered as a ready-to-use authenticated proxy endpoint. It helps you meet SEBI's static-IP rule, and you whitelist it once and never manage a server. IPv6 is ₹50 per month plus GST (₹59), or about ₹42 a month on a yearly plan. For brokers that require IPv4, a dedicated IPv4 is ₹200 per month plus GST.

Ready to set yours up? Get a dedicated IPv6 here, or compare plans on the pricing section.

Get your dedicated static IP

IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.

Get IPv6 · ₹50/mo + GSTGet IPv4 · ₹200/mo + GST

Keep reading

13 November 2026

Angel One SmartAPI: "static IP is already associated with another app"

SmartAPI won't let you create an app because the static IP is already used. Why Angel One maps one IP to one client, and how to trade two accounts.
13 November 2026

Dhan API: DH-905 "Invalid IP"

Dhan rejects API orders with DH-905 Invalid IP when they come from an address it doesn't have on file, or when the token predates the IP. Fixes, step by step.
13 November 2026

Kite Connect: "IP address is already linked to another account"

Zerodha won't save your static IP because it's linked to another account. Why it happens, family sharing rules, and how to fix it without breaking Zerodha's terms.