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.
What Kotak checks
- Order APIs only. Place, modify and cancel. Login, reports, portfolio, data and streams work from any IP.
- Same-IP session. The session used for orders must have been created from the whitelisted IP.
- Two addresses. A primary and a secondary static IP.
- 7-day changes. Each IP can be changed once every 7 days; you need a new session after a change.
- Family. Up to 10 family members can share your IP, added under Trade API family management. Only the parent account can set the IP.
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
- Get a dedicated IPv4 with its proxy details: host, port, username and password.
- Check the exit address:
curl -x http://USER:PASS@HOST:PORT https://ifconfig.co. Don't useipconfig, which shows your local address. - In Kotak Neo, go to More, Trade API, create an app if needed, then Add IP.
- 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
- stCode 100008, "unauthorized". The order came from an IP that isn't whitelisted.
- stCode 1037, "session ip doesnt match". You logged in from one address and ordered from another. Log in through the proxy.
- Orders fail after an IP change. Start a new session.
- Dual-stack proxy. Kotak's order hosts have IPv6 addresses. If your exit can use IPv6 while you registered IPv4, orders can fail. A TrueIP IPv4 proxy connects out over IPv4 only, so this can't happen with it.
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
- Kotak Neo: static IP whitelisting for retail algo trading
- Kotak-Neo GitHub: static IP whitelisting
- Kotak-Neo GitHub: troubleshooting
- Kotak support: are static IPs provided by Kotak?
- kotak-neo-python client
Get your dedicated static IP
IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.