Skip to content
Fixedmark

Algo trading · 11 min read

Updated

Home Static IP vs VPS vs Proxy for Algo Trading

You can get a broker-whitelistable IP from your ISP on a business plan, from a VPS or cloud VM with a reserved IP, or from a dedicated static IP proxy. For most retail traders, a VPS in India (from about ₹375 a month) or a dedicated proxy beats a home line, because consumer fibre connections are usually dynamic, often behind CGNAT, and can send orders over IPv6.

On this page

What the broker actually checks

Under SEBI's retail algo framework, your broker accepts API orders only from an IP address you registered with it. The SEBI rules post covers the circulars and dates. This post compares where the IP can come from.

When an order request reaches the broker, it compares the source IP of the connection with the addresses on your app. Zerodha requires a static IP for API order placement from 1 April 2026, and says the WebSocket market data stream and read APIs such as orderbook and positions are not restricted. So only your order calls need the fixed IP. Your data feed can come from anywhere.

Three broker rules shape every option below.

  • Two slots. Most brokers take one primary IP and one optional secondary IP. Upstox says each user has two, and orders are accepted only from them.
  • Slow changes. Zerodha and Angel One allow one change per calendar week. Kotak Neo allows one every 7 days. An IP that drifts costs you a week.
  • Exclusive use. Zerodha asks you to confirm the IPs will be used exclusively by you and your immediate family. Angel One maps a static IP to one client at a time, with family sharing on a written request and 2FA validation. An address shared with strangers fails this test.

Kotak Neo and Angel One accept only IPv4 static IPs for now. Zerodha, Upstox, and Dhan accept IPv4 or IPv6.

Option 1: a static IP from your ISP

Why your home IP does not qualify today

A normal home fibre plan gives you a dynamic IP. It changes when the router reconnects. On a Kite Connect forum thread, a JioFiber user reports that the IP changes every time the power goes out. With a one-change-per-week limit, that alone rules the line out.

Many home and mobile connections are also behind carrier-grade NAT (CGNAT). Your router does not get a public IPv4 address at all. It gets one from the shared range 100.64.0.0/10, which RFC 6598 reserves for exactly this purpose. The ISP then translates many subscribers to one public address. That public address is shared with strangers and can change without notice. You cannot honestly confirm it is used only by your family, so do not register it.

Find the WAN IP on your router's status page, then compare it with what the internet sees.

Terminal
# The IPv4 address the internet sees for your connection
curl -4 -s https://api.ipify.org; echo

# Your IPv6 address, if the line has one (fails if it does not)
curl -6 -s https://api6.ipify.org; echo

# Now open your router's status page and read its WAN IPv4.
# WAN starts with 100.64 to 100.127   -> you are behind CGNAT
# WAN differs from the curl -4 result -> some NAT sits upstream
# WAN equals the curl -4 result       -> public IP, maybe still dynamic

You can also open What's my IP in a browser on the same network. The CGNAT post explains the mechanism in more detail.

Getting a real static IP from Jio, Airtel, or ACT

A static IP in India is usually a business product. Tradejini's guide tells clients to ask their ISP for a static IP on a business broadband plan, and warns you may need to upgrade. What the three big fibre providers publish is thin.

  • Jio. The Business Broadband Max page lists a public static IP among the features, with no price on the page. Treat consumer JioFiber as dynamic.
  • Airtel. Airtel's B2B blog offers static IP plans to businesses through a request form. It names no price and says nothing about home Xstream Fiber plans.
  • ACT Fibernet. ACT sells a static IP as a paid add-on through customer support. In a March 2026 TechEnclave thread, one customer reports paying ₹250 plus GST a month, and another was quoted ₹350 plus GST. These are user reports, not a price list.
We could not find an official, published static IP price from Jio, Airtel, or ACT. Ask for a written quote for your city and plan, and confirm the address is IPv4 and dedicated to your connection.

How a home static IP fails

Even a true static IP leaves you with one line, one router, and one machine. A fibre cut, a long power cut, or a surprise Windows update reboot stops your orders. The IP also belongs to the connection, not to you. Move house or change ISP and you get a new address, and the weekly change limit applies. Filling the secondary slot means a second static line from a second ISP, which few people pay for.

Option 2: a VPS or cloud VM with a reserved IP

A small Linux VM in Mumbai or Bangalore runs your bot 24 hours a day, close to the brokers. The catch is the address. On most clouds the default public IP is temporary. You need the provider's reserved or static IP product, attached to the VM.

Here is the reserved-IP step on the two AWS products. Run it before you register anything with your broker, then register the address the last command prints.

# Mumbai is ap-south-1. The instance "trading-bot" already exists.
aws lightsail allocate-static-ip \
  --static-ip-name trading-bot-ip --region ap-south-1

aws lightsail attach-static-ip \
  --static-ip-name trading-bot-ip \
  --instance-name trading-bot --region ap-south-1

# The address to register with your broker
aws lightsail get-static-ip \
  --static-ip-name trading-bot-ip --region ap-south-1 \
  --query 'staticIp.ipAddress' --output text

How a VPS fails

The IP stays put, but you now run a server. You patch it, secure SSH, and restart the bot after a crash. Filling the secondary slot means a second VM, ideally in another zone, with its own reserved IP and its own copy of the bot or a failover plan. That doubles the cost. A common self-inflicted outage is recreating the VM to resize it and forgetting to move the reserved IP.

Option 3: a static IP proxy

A static IP proxy is a server with a fixed public IP that relays your connections. Your bot connects to the proxy, sends an HTTP CONNECT request for the broker's host, and the proxy opens the TCP connection to the broker. The broker sees the proxy's IP. TLS runs end to end between your bot and the broker through that tunnel, so a passthrough proxy carries encrypted bytes it cannot read. The CONNECT walk-through shows this on the wire.

The bot can now run anywhere. A home desktop, a laptop, Railway, or AWS Lambda all reach the broker from the same address. The serverless post covers that setup.

Broker SDKs built on Python requests can usually take a proxy. The official Python client for Kite Connect takes a proxies argument and passes it to every requests call, as its source shows. Route only the client that places orders, and leave the market data socket direct.

bot.py
# pip install kiteconnect requests
import os

import requests
from kiteconnect import KiteConnect

proxy = os.environ["FIXEDMARK_PROXY_URL"]  # or any static IP proxy URL
proxies = {"http": proxy, "https": proxy}

# Confirm the broker will see the IP you registered
print(requests.get("https://api.ipify.org", proxies=proxies, timeout=10).text)

kite = KiteConnect(
    api_key=os.environ["KITE_API_KEY"],
    access_token=os.environ["KITE_ACCESS_TOKEN"],
    proxies=proxies,
)
print(kite.profile()["user_id"])

What to check before you pick one

  • Dedicated, not shared. A proxy IP shared with other customers fails the exclusive-use rule, exactly like a CGNAT address. Ask the provider in writing whether the address is yours alone.
  • Not rotating. Rotating and residential proxies change the exit IP by design. They are the wrong product.
  • IPv4. Kotak Neo and Angel One accept only IPv4 static IPs today.
  • Close to the broker. Each order takes one extra hop. A proxy in Mumbai adds little for a bot in India. A proxy in another country adds a full round trip.
  • What it can see. A passthrough proxy sees the broker's hostname, timing, and byte counts, but not your API key or orders. A proxy that terminates TLS can read everything. The passthrough post shows how to verify which one you have.

Measure the extra hop instead of guessing. Run the same request direct and through the proxy and compare the totals.

Terminal
FMT='connect %{time_connect}s  tls %{time_appconnect}s  total %{time_total}s\n'

# Direct
curl -s -o /dev/null -w "$FMT" https://api.kite.trade/

# Through the proxy
curl -s -o /dev/null -w "$FMT" --proxy "$FIXEDMARK_PROXY_URL" https://api.kite.trade/

How a proxy fails

You depend on someone else's servers. If the provider's node is down, your orders stop, so a single-IP proxy has the same single point of failure as a single VPS. A provider that runs two IPs on two hosts lets you fill both broker slots with addresses that fail independently. The failover post explains why that matters. The proxy credential is also a secret. Anyone who has it can send traffic from your registered IP.

Cost in rupees, side by side

Dollar prices are converted at about ₹94 to the dollar, close to the RBI reference rate in early November 2026. Add GST where it applies. The cheapest row is not always the cheapest choice, because the home and VPS options cost time to run.

Monthly cost of one whitelistable IP, November 2026 (approximate)
OptionMonthly costSecond slotYou run
ACT static IP add-onAbout ₹250 to ₹350 plus GST on top of the plan (user reports)Needs a second lineHome PC, router, UPS
Jio or Airtel business planQuote only, business plan requiredNeeds a second lineHome PC, router, UPS
DigitalOcean Basic Droplet, Bangalore$4, about ₹375, reserved IP free while assignedSecond DropletA Linux server
Lightsail bundle, Mumbai$5, about ₹470, static IP free while attachedSecond instanceA Linux server
EC2 Elastic IP, Mumbai$3.65, about ₹345, for the address, plus the instanceSecond instance and IPA Linux server
Oracle Cloud Always Free₹0 for the VM, check your reserved IP limitSecond free VMA Linux server
Fixedmark India Trader (planned)See planned India pricingIncluded with the pairOnly your bot

The IPv6 trap on dual-stack lines

This one breaks setups that look correct. If the curl -6 check above printed an address, your line is dual-stack. Several broker API hosts publish both IPv4 (A) and IPv6 (AAAA) DNS records. When we ran dig AAAA on 10 November 2026, api.kite.trade, api.upstox.com, api.dhan.co, and api.icicidirect.com all returned IPv6 addresses.

Operating systems usually prefer IPv6 when both work, because the RFC 6724 default policy gives IPv6 higher precedence than IPv4. So your bot connects to the broker over IPv6, and the broker sees your IPv6 address, not the IPv4 you registered. The order is rejected even though your static IPv4 is correct. On a dynamic line the IPv6 prefix can change too, so registering it is no fix, and Kotak Neo and Angel One do not accept IPv6 yet.

If the bot connects directly from home or from a dual-stack VPS, force IPv4 for the order client. In Python, requests builds on urllib3, and one line restricts its DNS lookups to IPv4.

import socket

import requests
import urllib3.util.connection as urllib3_connection

# Resolve IPv4 only for every requests call in this process,
# including broker SDKs built on requests.
urllib3_connection.allowed_gai_family = lambda: socket.AF_INET

# api64 answers over whichever family you connect with.
# It should now print your IPv4 address.
print(requests.get("https://api64.ipify.org", timeout=10).text)

A proxy removes the problem for the order path. Your bot connects to the proxy, and the proxy connects to the broker. The broker sees the proxy's address whatever family your home line prefers. The IPv6 post covers other clients and clouds, and the troubleshooting guide covers other causes of rejected orders.

Which option fits which trader

  • Pick a home static IP if you already pay for a business line with a dedicated IPv4, your machine has a UPS, and you watch it during market hours. Do not pick it on consumer JioFiber or Airtel Xstream.
  • Pick a VPS if you are happy running a Linux server and want the bot itself in a data centre near the broker. Use a reserved IP from day one, and budget for a second VM if you want the secondary slot to mean something.
  • Pick a dedicated static IP proxy if the bot runs somewhere whose IP you do not control (a laptop, a PaaS, serverless), or if you want both broker slots filled without running two servers.
  • Mix them if you like. A VPS IP in the primary slot and a proxy IP in the secondary slot gives two independent paths, as long as both are yours alone.

Whichever you choose, verify the exact address the broker will see before you register it, because a wrong entry can cost you a week. Each broker guide lists that broker's slots and change limits.

Doing this with Fixedmark

Fixedmark is the proxy option, built in India. The planned India Trader plan gives you dedicated IPv4 addresses in Mumbai. See planned India pricing. It is in early access, and prices may change before launch. The pair runs on two nodes, so you register one IP as primary and one as secondary. Each new connection can leave from either IP, so register both. Kotak Neo needs the session created from the IP that sends the orders, so ask Fixedmark support before you rely on the pair with Kotak Neo.

  1. 1
    Set the proxy URL as a secretStore FIXEDMARK_PROXY_URL as an environment variable on the machine or platform that runs your bot.
  2. 2
    Check the egress IPsRun curl --proxy "$FIXEDMARK_PROXY_URL" https://fixedmark.com/api/ip a few times and confirm each answer is one of your pair. Seeing only one address is fine. The verify guide has more checks.
  3. 3
    Register both addressesFollow your broker's page, for example the Zerodha guide, to add the pair as primary and secondary.
  4. 4
    Route only the order clientPass the proxy to the client that places orders, as in the Kite example above. The Python docs cover requests and httpx.
The trial and Starter run on a shared IP pair. Do not register shared addresses with a broker. Use a dedicated plan for whitelisting. This post is technical information, not legal or investment advice. Check your broker's current rules before you register an IP.

Sources

Checked November 2026. Confirm current details on the vendor's site before you decide. Prices and limits change.

Blog

Frequently asked questions

Can I register my JioFiber or Airtel home IP with my broker?

Usually not. Consumer plans give a dynamic IP that changes on reconnect, and many lines sit behind CGNAT, where your public IPv4 is shared with other subscribers. Ask your ISP for a dedicated static IPv4, which is usually sold on business plans.

Can I use a VPN for broker whitelisting?

A normal consumer VPN shares each exit IP among many users and changes it between sessions, so it fails both the static and the exclusive-use rules. Only an address dedicated to you and your family fits.

Does my bot have to run on the machine that owns the static IP?

Not with a proxy. Only the connection that reaches the broker needs the fixed IP. Your code can run at home, on a laptop, or on a cloud platform and send its order calls through the proxy.

What happens to my IP if I resize or recreate my VPS?

An ephemeral or auto-assigned IP is lost when the instance is stopped or deleted on most clouds. A reserved IP (Elastic IP, Lightsail static IP, DigitalOcean reserved IP, OCI reserved public IP) survives, but you must attach it to the new VM yourself.

Is a free Oracle Cloud VM good enough for algo trading?

It can work with a reserved public IP. The risk is Oracle's idle reclamation rule for Always Free instances, which a low-CPU bot can trigger. Keep a paid fallback ready if a lost VM would cost you trading days.

Make it fixed.

Fixedmark is in early access. Join the list to get dedicated static IPs when your region opens.