Talk to the NOC, IST hours — +91 75994 50220 support@bigdomainhost.com
Guide

Static IP for algo trading in India: broker rules, ISP vs VPS, and setup steps

Since 1 April 2026, Indian brokers accept API orders only from an IP address you have registered with them. This guide explains the rule, how a static IP from your internet provider compares with the dedicated IPv4 on a VPS, and how to whitelist it with Zerodha, Upstox, Dhan, Kotak Neo, Angel One, Fyers and ICICI Direct.

Short answer: If you place orders through a broker API from your own code, NSE's retail algo rules require the orders to come from a static IP registered with your broker, with an optional secondary IP, changeable at most once a calendar week. Market data calls work from any IP. You can use a true static IP from your ISP or the dedicated IPv4 address of a VPS; a VPS also keeps the bot running when your home PC or internet is off.

Not investment advice. This guide covers the IP address and server your own trading code runs from, not whether any strategy, broker or platform suits you.

Why Indian brokers ask for a static IP

SEBI's circular of 4 February 2025, Safer participation of retail investors in Algorithmic trading, asked the exchanges to set standards for orders placed through broker APIs. NSE's circular NSE/INVG/67858 (5 May 2025) turned that into a rule brokers now enforce: a client who sends orders through an API must give the broker a static IP, may add a secondary IP for redundancy, and may change it no more than once a calendar week. An IP is mapped to one client at a time, or shared within a family as SEBI defines it, on a written request from the registered email or with 2FA. The framework took full effect on 1 April 2026, after SEBI's glide-path circular of 30 September 2025.

In practice this means three things:

  • Only order calls are checked. Zerodha, Upstox, Fyers and Kotak Neo say market data, positions, holdings and similar read-only calls still work from any IP. Placing, modifying and cancelling orders from an unregistered IP is rejected.
  • It applies to your own code. NSE's retail algo FAQ says that when you trade through an empanelled algo provider's platform hosted at your broker, the broker's server IP is used and you do not need your own.
  • It is meant for people who write their own algos. NSE circular NSE/INSP/77559 (20 November 2026) says personal static IPs are only for "tech-savvy" retail investors who develop their own algos, and brokers must take an undertaking from each such client. Renting a server does not put you in that category; ask your broker whether you qualify.

If you do write your own code, the question becomes practical: where will your bot run, and which address will the broker see? There are two realistic answers: a static IP from your home or office internet provider, or the dedicated IPv4 address that comes with a server in a data centre.

ISP static IP or a VPS dedicated IPv4?

Both satisfy the broker, as long as the address never changes without you knowing. Fyers staff have said in the Fyers Community (checked 23 November 2026) that a home connection works only if your ISP gives you a static IP. Many home broadband plans give you an address that changes, or one shared with other customers behind carrier-grade NAT (the 100.64.0.0/10 shared address space that RFC 6598 sets aside for this purpose). So the first job is to find out which kind you have.

Where your registered static IP can come from (prices as listed by each provider, checked 26 November 2026)
Bigdomainhost KVM VPS (dedicated IPv4)Static IP from your home or office ISPCloud static or Elastic IP (AWS)
Cost of the IPIncluded: a dedicated IPv4 and an IPv6 /64 with every VPS, from ₹674 (US$7.66) per 30 days plus 18% GSTDepends on the ISP and plan; ask your ISP. Jio lists a public static IP on its Business Broadband Max plans but shows no price on that pageLightsail: a static IP is included in all plans (Linux from $5 USD/mo). EC2: $0.005 USD per hour for each public IPv4, in use or idle
Bot keeps running when your PC is offYes, the server runs in a data centre in Mumbai or Delhi NCROnly if a PC at home stays on and onlineYes
Power cut or broadband outage at homeDoes not affect the serverStops the bot until power and the line are backDoes not affect the server
Risk of the address changingStays with the server; confirm with us before registering, and register a new one if you replace the serverFixed only on a plan sold as a static IP; a normal plan can change on reconnectStays while the static or Elastic IP is kept on your account
BillingRupees, prepaid in 30-day periods from a wallet (UPI, cards, net banking)Rupees, with your broadband billPrices listed in US dollars; Indian accounts are invoiced in rupees by AWS India
Help when something breaksWhatsApp support any time, phone in IST hoursYour ISP's supportAWS support plans

Bigdomainhost publishes this guide and sells the first column, so weigh that. A home static IP is perfectly valid if your PC is on all day and the line is reliable. A server is the better fit when you want the bot to keep running through power cuts, router restarts and Windows updates at home, and when you would rather not depend on one PC. For a wider comparison of providers with a static IP in India, including E2E Networks and Vultr, see our VPS for trading in India guide and the India VPS and server price index.

How to check whether your home IP is static

  1. Open your router's status page and note the WAN IP (sometimes called Internet IP).
  2. From a computer on the same connection, ask a public service which address it sees: curl -4 https://icanhazip.com (Windows 10 and 11 include curl.exe).
  3. If the WAN IP is between 100.64.0.0 and 100.127.255.255, or differs from what the service shows, you are behind carrier-grade NAT and share the public address with other customers. You cannot register that address as your own.
  4. If the two match, restart the router and check again over a few days. If the address changes, it is dynamic. Only a plan your ISP sells as a static IP stays fixed.

Find and verify your VPS's static IP

On a Linux VPS, check the address on the network interface and the address the internet sees. They should be the same:

# address on the server's interface
ip -4 addr show scope global

# address the outside world sees, over IPv4 and IPv6
curl -4 https://icanhazip.com
curl -6 https://icanhazip.com

Register the IPv4 address from the first curl with your broker. On Windows Server, run curl.exe -4 https://icanhazip.com in PowerShell.

Watch out for IPv6 on a dual-stack server

Our servers have both an IPv4 address and an IPv6 /64. By default, systems prefer IPv6: RFC 6724 says "The default policy table gives IPv6 addresses higher precedence than IPv4 addresses." If your broker's API hostname also has an IPv6 address, your bot's order may leave over IPv6, from an address you did not register, and be rejected. Check first:

getent ahosts api.your-broker.example   # lists the host's IPv4 and IPv6 addresses

You have three clean fixes:

  • Register both. Upstox and Dhan accept IPv4 or IPv6, so you can register your IPv4 as primary and one fixed IPv6 address from your /64 as secondary.
  • Prefer IPv4 for the whole server. RFC 6724, section 10.3, says an administrator can prefer IPv4 "by giving the ::ffff:0.0.0.0/96 prefix a higher precedence". On Linux with glibc, that is this line in /etc/gai.conf:
    precedence ::ffff:0:0/96  100
  • Force IPv4 in your code, for example by binding your HTTP client to the IPv4 address. This is the most explicit, but it has to be done in every script.

Then confirm from the bot itself: log an icanhazip check over the same route at start-up, so you know which address your orders will come from before the market opens.

How to whitelist your static IP, broker by broker

Each broker uses its own screens. These are the steps and limits each broker publishes, checked 26 November 2026 unless noted. Menus change, so follow the broker's page if it differs.

Static IP rules for API orders by Indian broker (sources below)
BrokerWhere you register itIPsChange limitFamily sharing
Zerodha (Kite Connect)developers.kite.trade, Profile, IP WhitelistPrimary + optional secondaryOnce per calendar weekSpouse, dependent children and dependent parents, through one developer account
UpstoxMy Apps in the developer portal, or the Update static IPs APIPrimary + secondary, IPv4 or IPv6Once per calendar week; access tokens reset after a changeLinked family group of up to 5 (Upstox Community, Nov 2026)
Dhan (DhanHQ)DhanHQ static IP setup, or set_ip in the official Python SDKPrimary + secondary, IPv4 or IPv6Locked for 7 days after whitelistingNo: each person needs a unique IP
Kotak Neo (Trade API)Kotak Neo, More, Trade API, Create API Application, Add IPPrimary + optional secondary; IPv4 nowOnce every 7 days, then start a new sessionUp to 10 family members
Angel One (SmartAPI)Log in, Add App, enter your primary static IPPrimary + optional secondaryNot more than once a calendar weekWithin a family as SEBI defines it, on written request with 2FA
FyersAgainst your API app ("one app, one IP")One per appNot statedCommon family IP on request (Fyers Community)
ICICI Direct (Breeze)Given to ICICI Direct when you get your API keyPrimary + secondaryOnce per weekNot stated

Zerodha Kite Connect

  1. Log in to the Kite Connect developer console at developers.kite.trade.
  2. Open Profile at the top right.
  3. Under IP Whitelist, enter your static IP, one per line (a primary and an optional secondary).
  4. Select Update. Check the address carefully first: Zerodha notes that exchange rules allow one change per calendar week.

For family members, Zerodha says to use one developer account, create separate apps, add each client ID, and confirm the declaration that the IPs are used only by you and your immediate family.

Upstox

  1. Sign in to the Upstox developer portal and open My Apps (Manage API Apps).
  2. Add a primary and, if you want, a secondary IP, in IPv4 or IPv6 notation.
  3. Generate a new access token afterwards: Upstox says existing tokens are invalidated when the IPs change.

Upstox also offers Get and Update static IP API endpoints, and checks the IP on place, modify and cancel order, multi-order, GTT and exit-all calls.

Dhan (DhanHQ)

Set a primary and a secondary IP in the static IP setup described in the DhanHQ authentication docs, or from code with the official Python SDK, which exposes set_ip, modify_ip and get_ip:

response = dhan_login.set_ip(access_token, "203.0.113.10", "PRIMARY")

A whitelisted IP cannot be changed for 7 days, and Dhan requires a unique static IP per person (checked 21 November 2026).

Kotak Neo

  1. Log in to Kotak Neo and go to More, then Trade API.
  2. Select Create API Application if you have none.
  3. Select Add IP and enter your primary static IP; add a secondary from the application details page if you want one.
  4. Create the API session from the same IP that will send orders.

Angel One SmartAPI

Angel One's instructions are to log in, select Add App, and enter your primary static IP, with an optional secondary for redundancy. API orders are accepted only from the registered IPs.

Fyers and ICICI Direct

Fyers needs a static IP only for order placement. Its team describes the rule as "one app, one IP" in the Fyers Community (checked 23 November 2026). ICICI Direct's Breeze SDK says orders must come only from the static IP registered when you get your API key, and the primary or secondary can be updated once a week.

Run the bot on the server so it uses that IP

Registering the IP is half the job; the order has to leave from it. On a Linux VPS, run the bot as a service so it starts on boot and restarts if it crashes. A minimal systemd unit:

# /etc/systemd/system/tradebot.service
[Unit]
Description=Trading bot
After=network-online.target
Wants=network-online.target

[Service]
User=trader
WorkingDirectory=/home/trader/bot
ExecStart=/home/trader/bot/.venv/bin/python main.py
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now tradebot
journalctl -u tradebot -f    # follow the log

Then lock the server down. The bot only makes outbound connections, so it needs no open inbound port of its own. Allow SSH only from your own address and use SSH keys; our Ubuntu VPS initial setup and SSH keys guides cover this step by step, and deploying a Python app on a VPS covers virtual environments. Keep your API secret in an environment file readable only by the bot's user, never in the code.

If you run MetaTrader or another Windows program instead, use a Windows VPS, keep Network Level Authentication on and allow Remote Desktop only from your own IPs.

Running it on a Bigdomainhost VPS or dedicated server

For a single Python or Node.js bot, the Starter KVM VPS is enough to start: 2 vCPU, 4 GB RAM, 40 GB NVMe and 5 TB of transfer for ₹674 (US$7.66) per 30 days plus GST. If you also store tick data or run several bots, the next size, with 4 vCPU, is ₹1,348 (US$15.32). Both are available in Mumbai (BOM-1) and Delhi NCR (DEL-1) at the same price, so choose by measured ping to your broker. Our latency test checks your own connection to each region.

  • A second address for the secondary slot. Most brokers let you register a secondary IP. An additional static IPv4 address is ₹319 (US$3.63) a month on our pricing page, or you can register the IPv6 address where your broker accepts IPv6.
  • Dedicated cores for heavy workloads. A VDS pins 4 dedicated cores, 16 GB RAM and 240 GB NVMe to your server from ₹3,576 (US$40.64) per 30 days plus GST, set up after an enquiry. A dedicated server, from ₹14,499 (US$164.76) a month plus GST, gives you the whole machine.
  • Billing you can plan around. Servers are prepaid in 30-day periods from a rupee wallet, paid by UPI, cards or net banking. There is no free trial, and an unpaid renewal suspends the server 2 days after the due date, which would stop your bot, so keep auto-renew on. How server billing works has the details.
  • Help in your hours. WhatsApp support any time, phone in IST hours, at +91 75994 50220.

Before you register the address with your broker, message us to confirm it stays with your server. Moving a server to the other region is free, but a moved or replaced server may get a new IP, which you would then register again within your broker's weekly limit. The 99.9% uptime SLA pays service credits; it cannot undo a missed order, so make your bot handle a dropped connection safely.

Checklist before your first live order

  1. Confirm with your broker that you are allowed your own static IP under NSE's rules.
  2. Note the server's IPv4 from curl -4 https://icanhazip.com, and an IPv6 address if your broker takes it.
  3. Register the IP in your broker's console and generate a fresh token or session afterwards.
  4. Make sure orders cannot leave over an unregistered IPv6 address.
  5. Run the bot as a service, with SSH limited to your IP and keys only.
  6. Place a single small test order in market hours and check that it is accepted.
  7. Write down the date you registered the IP, so you know when the weekly change window reopens.

This guide was written by the Bigdomainhost team with AI assistance; broker rules and commands were checked against the linked sources on 26 November 2026, except where an earlier check date is given.

Sources (checked )

Answers

Frequently asked questions

Still unsure? Call +91 75994 50220 or write to support@bigdomainhost.com — a human replies in IST hours.

Do I need a static IP for algo trading in India?

Only if you place orders through a broker API from code you wrote yourself. Since 1 April 2026, under SEBI's retail algo framework and NSE's standards, brokers accept API orders only from a registered static IP; market data and other read-only calls work from any IP. If you use an empanelled algo platform hosted at your broker, the broker's server IP is used and you need none.

Can I use my home broadband IP for Zerodha or Upstox API orders?

Only if your ISP sells you a true static IP. Many home plans give an address that changes, or one shared with other customers through carrier-grade NAT (100.64.0.0/10, RFC 6598), which you cannot register. Compare your router's WAN IP with what curl -4 https://icanhazip.com shows; if they differ, or the address changes after a router restart, it is not static.

Does a VPS come with a static IP?

Usually, but check the provider. Every Bigdomainhost KVM VPS includes one dedicated IPv4 address and an IPv6 /64, from Rs 674 per 30 days plus 18% GST in Mumbai or Delhi NCR; confirm with us that the address stays with your server before registering it. AWS Lightsail includes a static IP in all plans, and AWS EC2 charges $0.005 USD per hour for each public IPv4, as checked in November 2026.

How often can I change my registered static IP?

NSE's standard is no more than once a calendar week, and brokers apply it: Zerodha, Upstox and Angel One allow one change per calendar week, Kotak Neo once every 7 days, Dhan locks a whitelisted IP for 7 days, and ICICI Direct once a week. Upstox and Kotak Neo also require a new token or session after a change.

Can family members share one static IP?

It depends on the broker. Zerodha allows immediate family (spouse, dependent children, dependent parents) through one developer account; Upstox a linked family group of up to 5; Kotak Neo up to 10 family members; Angel One within a family as SEBI defines it, on written request with 2FA; Fyers a common family IP on request. Dhan requires a unique static IP per person.

Why are my API orders rejected even though I registered my server's IP?

The order is probably leaving from a different address. On a server with IPv6, the system prefers IPv6 by default (RFC 6724), so if the broker's API host has an IPv6 address your order may go out over an unregistered IPv6 address. Register the IPv6 address too where the broker allows it, or prefer IPv4 by adding 'precedence ::ffff:0:0/96 100' to /etc/gai.conf. Also generate a new token after any IP change.

Support that picks up the phone.

In IST hours, in Hindi or English, and WhatsApp replies fastest at any time. Sales, migration and emergencies all reach the same engineers. No offshore queue, no 48-hour first reply.

Need cPanel or WHM with the ports already sorted?

Web & cPanel hosting comes with cPanel ready to log in to, reseller hosting adds white-label WHM, and a KVM VPS can have cPanel & WHM pre-installed. Call +91 75994 50220 or email support@bigdomainhost.com.