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.
| Bigdomainhost KVM VPS (dedicated IPv4) | Static IP from your home or office ISP | Cloud static or Elastic IP (AWS) | |
|---|---|---|---|
| Cost of the IP | Included: a dedicated IPv4 and an IPv6 /64 with every VPS, from ₹674 (US$7.66) per 30 days plus 18% GST | Depends 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 page | Lightsail: 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 off | Yes, the server runs in a data centre in Mumbai or Delhi NCR | Only if a PC at home stays on and online | Yes |
| Power cut or broadband outage at home | Does not affect the server | Stops the bot until power and the line are back | Does not affect the server |
| Risk of the address changing | Stays with the server; confirm with us before registering, and register a new one if you replace the server | Fixed only on a plan sold as a static IP; a normal plan can change on reconnect | Stays while the static or Elastic IP is kept on your account |
| Billing | Rupees, prepaid in 30-day periods from a wallet (UPI, cards, net banking) | Rupees, with your broadband bill | Prices listed in US dollars; Indian accounts are invoiced in rupees by AWS India |
| Help when something breaks | WhatsApp support any time, phone in IST hours | Your ISP's support | AWS 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
- Open your router's status page and note the WAN IP (sometimes called Internet IP).
- From a computer on the same connection, ask a public service which address it sees:
curl -4 https://icanhazip.com(Windows 10 and 11 includecurl.exe). - If the WAN IP is between
100.64.0.0and100.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. - 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.
| Broker | Where you register it | IPs | Change limit | Family sharing |
|---|---|---|---|---|
| Zerodha (Kite Connect) | developers.kite.trade, Profile, IP Whitelist | Primary + optional secondary | Once per calendar week | Spouse, dependent children and dependent parents, through one developer account |
| Upstox | My Apps in the developer portal, or the Update static IPs API | Primary + secondary, IPv4 or IPv6 | Once per calendar week; access tokens reset after a change | Linked family group of up to 5 (Upstox Community, Nov 2026) |
| Dhan (DhanHQ) | DhanHQ static IP setup, or set_ip in the official Python SDK | Primary + secondary, IPv4 or IPv6 | Locked for 7 days after whitelisting | No: each person needs a unique IP |
| Kotak Neo (Trade API) | Kotak Neo, More, Trade API, Create API Application, Add IP | Primary + optional secondary; IPv4 now | Once every 7 days, then start a new session | Up to 10 family members |
| Angel One (SmartAPI) | Log in, Add App, enter your primary static IP | Primary + optional secondary | Not more than once a calendar week | Within a family as SEBI defines it, on written request with 2FA |
| Fyers | Against your API app ("one app, one IP") | One per app | Not stated | Common family IP on request (Fyers Community) |
| ICICI Direct (Breeze) | Given to ICICI Direct when you get your API key | Primary + secondary | Once per week | Not stated |
Zerodha Kite Connect
- Log in to the Kite Connect developer console at developers.kite.trade.
- Open Profile at the top right.
- Under IP Whitelist, enter your static IP, one per line (a primary and an optional secondary).
- 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
- Sign in to the Upstox developer portal and open My Apps (Manage API Apps).
- Add a primary and, if you want, a secondary IP, in IPv4 or IPv6 notation.
- 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
- Log in to Kotak Neo and go to More, then Trade API.
- Select Create API Application if you have none.
- Select Add IP and enter your primary static IP; add a secondary from the application details page if you want one.
- 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
- Confirm with your broker that you are allowed your own static IP under NSE's rules.
- Note the server's IPv4 from
curl -4 https://icanhazip.com, and an IPv6 address if your broker takes it. - Register the IP in your broker's console and generate a fresh token or session afterwards.
- Make sure orders cannot leave over an unregistered IPv6 address.
- Run the bot as a service, with SSH limited to your IP and keys only.
- Place a single small test order in market hours and check that it is accepted.
- 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 )
- Securities and Exchange Board of India: Safer participation of retail investors in Algorithmic trading (4 Feb 2025)
- Securities and Exchange Board of India: Circular SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/132, glide path to 1 April 2026 (checked 23 Nov 2026)
- National Stock Exchange of India: Circular NSE/INVG/67858 (5 May 2025), archived copy (checked 21 Nov 2026)
- National Stock Exchange of India: FAQ on Retail Algo (3 Nov 2025), archived copy (checked 23 Nov 2026)
- Zerodha Support: What is a static IP and how to add one to your developer account?
- Upstox Developer API: Algo Registration & Static IP Requirement
- Upstox Community: Can we use multiple accounts with single static IP, archived (checked 23 Nov 2026)
- DhanHQ: API documentation: Authentication and static IP setup (checked 21 Nov 2026)
- DhanHQ (GitHub): DhanHQ-py README: IP Management (set_ip, modify_ip, get_ip)
- Kotak Neo: Static IP Whitelisting for Retail Algo Trading
- Angel One: What's Changing in Angel One's SmartAPI Access from April 1, 2026
- Fyers: FYERS Trading API (static IP FAQ)
- Fyers Community: Shared family IP, thread 22987, archived (checked 23 Nov 2026)
- Fyers Community: SEBI's new algo trading rules kick in on April 1, thread 12267, archived (checked 23 Nov 2026)
- ICICI Direct (GitHub): Breeze Python SDK README, Regulatory Changes
- IETF (RFC Editor): RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space (100.64.0.0/10)
- IETF (RFC Editor): RFC 6724: Default Address Selection for IPv6, section 10.3
- Linux man-pages: gai.conf(5): getaddrinfo configuration file
- Jio Business: Business Broadband Max (public static IP)
- AWS: Amazon Lightsail pricing (static IP included in all plans)
- AWS: Amazon VPC pricing, public IPv4 addresses
- AWS: Manage accounts in India (AWS India invoices in INR)