Static IP for the Kotak Neo Trade API

Since 1 April 2026, Kotak Neo accepts order calls only from a static IP registered on your Trade API app, and only from a session that was created from that same IP. You can register two IPs and change each once every 7 days. Kotak's website says IPv4 is supported now and IPv6 is coming, so use IPv4 for now.

Last checked against the broker's own docs on 13 November 2026

What Kotak checks

Kotak's two official sources differ on IPv6: its GitHub docs list IPv4 and IPv6, while kotakneo.com says "IPv4 (currently), IPv6 support coming soon". We go by the website.

How to register your IP with Kotak

  1. Get a dedicated IPv4 with its proxy details: host, port, username and password.
  2. Check the exit address: curl -x http://USER:PASS@HOST:PORT https://ifconfig.co. Don't use ipconfig, which shows your local address.
  3. In Kotak Neo, go to More, Trade API, create an app if needed, then Add IP.
  4. Log in through the proxy so the session is created from that IP.

Send Kotak Neo orders through the fixed IP

The official kotakneoapi client takes a custom httpx transport, which Kotak documents for proxies:

import os, httpx
from neo_api_client import NeoAPI

PROXY = os.environ["PROXY_URL"]  # http://USER:PASS@HOST:PORT
client = NeoAPI(
    consumer_key=os.environ["KOTAK_CONSUMER_KEY"],
    environment="prod",
    transport=httpx.HTTPTransport(proxy=PROXY, http2=True),
)
client.totp_login(mobile_number=os.environ["KOTAK_MOBILE"], ucc=os.environ["KOTAK_UCC"], totp=os.environ["KOTAK_TOTP"])
client.totp_validate(mpin=os.environ["KOTAK_MPIN"])
print(client.whatsmyip())  # must match your registered ip

The full Kotak Neo proxy guide on GitHub covers WebSockets and troubleshooting.

Common Kotak Neo errors

More detail: Kotak Neo 100008 and 1037 errors explained.

Kotak Neo static IP: FAQs

Does Kotak Neo accept IPv6?

Kotak's website says IPv4 is supported currently and IPv6 support is coming soon. Use a dedicated IPv4 until that changes.

Does Kotak provide a static IP?

No. Kotak's support page says it isn't associated with any provider and static IPs must be procured from ISPs or VPN providers.

Can my family use my IP on Kotak Neo?

Yes, up to 10 family members, added under Trade API family management.

Sources

Get your dedicated static IP

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

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

Other brokers

ICICI Direct Breeze

ICICI Direct Breeze accepts orders only from the static IP on your API key. Primary and secondary IPs, weekly changes, family sharing and Python setup.

Shoonya (Finvasia)

Shoonya checks your registered IP on login and every API call, not just orders. Primary and backup IPs, why IPv4 is safer, and the Python setup.

Samco Trade API

Samco accepts API orders only from a whitelisted IPv4. One change per 7 days across your account, one client per IP, and the Python SDK proxy setup.

Zerodha Kite Connect

Zerodha Kite Connect accepts API orders only from a whitelisted IP. The rules, IPv4 or IPv6, where to add the IP, and Python code to route orders through it.

Upstox API

Upstox accepts API orders only from your registered static IP. The rules, IPv4 or IPv6, where to add the IP, and the Python SDK setup that avoids 407 errors.

Angel One SmartAPI

Angel One SmartAPI accepts orders only from your registered static IP, and only IPv4 for now. The rules, how to register the IP, and the Python setup.

All 10 brokers