Static IP for Angel One SmartAPI
Since 1 April 2026, Angel One accepts SmartAPI orders only from the static IP registered on your API app. You need one fixed public IPv4 address that only you use, set as the primary static IP when you create the app, with your order calls sent through it. Angel One supports only IPv4 for now, so an IPv6 address won't work here.
What Angel One checks
From Angel One's notice on SmartAPI changes and the SmartAPI team's forum announcement:
- Orders and GTT only. The static IP is mandatory for order and GTT APIs, not for the others.
- Two addresses. One primary static IP, plus an optional secondary IP for backup.
- One client per IP. A static IP can be mapped to only one client at a time. Family members, as SEBI defines family, can share one through a written request to Angel One.
- One change a week. You can change the mapped IP no more than once per calendar week.
- IPv4 only. The SmartAPI team says only IPv4 static IPs are supported for now.
Why IPv6 won't work with SmartAPI (yet)
Two separate reasons. Angel One's console accepts only IPv4, and the API host itself, apiconnect.angelone.in, has no IPv6 address, so an IPv6-only exit can't reach it at all. The streaming host is the same. You can check:
dig +short apiconnect.angelone.in AAAA # empty: no IPv6
dig +short smartapisocket.angelone.in AAAA # empty: no IPv6
So for Angel One, take a dedicated IPv4. At TrueIP that's ₹200 a month plus GST, and the same address works with every other broker too.
How to register your IP with Angel One
- Get a fixed IPv4 address with its proxy details: host, port, username and password.
- Check the exact exit address:
curl -x http://USER:PASS@HOST:PORT https://ifconfig.co - Log in to the SmartAPI portal and create an app with that address as the primary static IP. Angel One's notice describes this as Add App, then entering the primary static IP.
- Use the new API key from that app. Keys created before static IP keys may not work for orders.
- Set up TOTP for your account in SmartAPI and keep the secret safe.
Send SmartAPI orders through the fixed IP
The official smartapi-python client's SmartConnect takes a requests-style proxies dict:
import os
import pyotp
from SmartApi import SmartConnect
PROXY = os.environ["PROXY_URL"] # http://USER:PASS@HOST:PORT
obj = SmartConnect(
api_key=os.environ["ANGEL_API_KEY"],
proxies={"http": PROXY, "https": PROXY}, # smartapi calls leave from the fixed IP
)
totp = pyotp.TOTP(os.environ["ANGEL_TOTP_SECRET"]).now()
session = obj.generateSession(os.environ["ANGEL_CLIENT_CODE"], os.environ["ANGEL_PIN"], totp)
Generate the TOTP right before generateSession, and keep the machine's clock synced, because a drifting clock gives a wrong code. The full SmartAPI proxy guide on GitHub covers older client versions, a sample order and verification.
Common SmartAPI errors
- Login works, orders rejected. Only order and GTT calls are IP checked. Compare the exit IP with the app's registered IP, and check you're using the API key of the app that has the static IP.
- Every call fails over an IPv6 proxy. Expected. The API host has no IPv6. Switch to IPv4.
- Invalid TOTP. Check the clock and the secret. Don't reuse a code from a minute ago.
- Can't register the IP. It may already be mapped to another client, or you've used this week's change.
For a step-by-step check of IP errors, see how to fix "IP not whitelisted" errors.
Angel One static IP: FAQs
Does Angel One SmartAPI support IPv6?
Not yet. The SmartAPI team says only IPv4 static IPs are supported for now, and the API host has no IPv6 address. Use a dedicated IPv4.
Can my family use the same IP on Angel One?
Angel One maps a static IP to one client at a time, but family members as SEBI defines family can share one through a written request to the broker.
How often can I change my Angel One static IP?
No more than once per calendar week.
Which TrueIP plan should I take for Angel One?
A dedicated IPv4 at ₹200 a month plus GST. IPv6 won't connect to SmartAPI.
Sources
- Angel One: what's changing in SmartAPI access from 1 April 2026
- SmartAPI forum: static IP based API keys now live
- smartapi-python client
Get your dedicated static IP
IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.