Unauthorized request: IP address does not match the login IP.
Last updated 30 July 2026
Broker rejects your IP (static IP not registered)
Your broker rejects the request because the static IP that AutoTrader uses is not registered with the broker. Any broker error about an invalid static IP, a static IP not registered, or an order or login coming from the wrong IP has this same cause and fix. Fix it in two steps. First, assign a static IP to the account in our system: go to Accounts -> Trading Accounts, click the EDIT icon next to the account, and click the Static IP button, then pick the option shown for your broker. A static IP from us is a small paid add-on, inclusive of all taxes — if your broker supports IPv6 you buy a Premium static IPv6 at 100 rupees per month, and if your broker is IPv4 only you choose a Premium static IPv4 we set up for you at 299 rupees per month (3-month minimum to start), a Standard static IPv4 from our pool at 200 rupees per month, or bring your own IP, which is free. Do not buy a static IP from your internet provider — a broadband static IP is only an address, not a proxy, and a normal connection's IP keeps changing. Second, register that same IP in your broker's API dashboard. In most cases the IP shown in the broker's error is that same assigned IP, so registering the IP from the error at your broker fixes it. Only if the error shows a different IP that you did not assign should you not register it — that can happen when no static IP is set on the account yet; assign one first, or contact our support if you are unsure.
When this happens
- 1 No static IP is assigned to your trading account in our system.
- 2 A static IP is assigned in our system but it is not registered in your broker's API dashboard.
Errors
This fix applies to broker errors about IP, such as:
- Unauthorized request: IP address does not match the login IP. (Anand Rathi, Jainam)
- AG7002 - your IP is not a registered IP, please check your registered IP. (Angel One)
- AG8005 - API key mismatch against app found with Static IP in request. (Angel One)
- Access to this API is blocked due to static IP restrictions. No static IP has been configured. (Upstox)
- Please register your static IPs first. (5paisa)
- Orders are only allowed from whitelisted IP addresses. (Fyers)
- Primary/Secondary IP not configured. Login denied. (XTS brokers)
- No IPs configured for this app. (Zerodha)
- GenAcsTok failed: Invalid Input : INVALID_IP. (Profitmart, Finvasia / Shoonya, Flattrade, PL India)
- DH-905 - Invalid IP. (Dhan)
- Session IP doesn’t match with request IP / unauthorized. (Kotak Neo)
Motilal Oswal also checks the request IP. If your IP is not registered, the connection is blocked, sometimes showing up as a connection or timeout failure rather than a clear IP message. The same two-step fix below applies.
The wording differs by broker, but the cause is always the same. Any broker message about an invalid static IP, a static IP that is not registered, or an order or login that came from the wrong IP has this same cause and the same fix below — even if the exact words are not in the list above.
The fix in short
Two steps, and you need both:
- Assign our static IP. In Accounts → Trading Accounts, click the EDIT icon next to the account and click the Static IP button. Pick the option shown for your broker — a static IP from us is a small monthly add-on, inclusive of all taxes. You do not buy one from your internet provider (a normal connection’s IP keeps changing, so it will not work).
- Register that IP with your broker. Add the IP from Step 1 in your broker’s API dashboard (the IP whitelist field), then come back, click Validate and Save.
Register only the IP our system assigns you — not the IP shown in the error. The detailed steps are below.
A static IP from us is not free. The options and prices depend on your broker — see What you get for your broker below. Only bring your own IP (BYOIP) is free.
What you get for your broker
Click the Static IP button on the account edit screen and the popup shows the options for your broker. A static IP from us is a paid add-on — the prices below are final and inclusive of all taxes.
If your broker supports IPv6 (Zerodha, Fyers, Upstox, IIFL, 5paisa, Groww, Dhan, AliceBlue, Kotak) — you buy a Premium static IPv6 at ₹100 per month. It comes as a primary and a backup address for that one price, and you register both with your broker. The Standard IPv4 pool option is not offered on these brokers, because IPv6 is faster, more reliable and cheaper there — so your choice is the Premium static IPv6, or bringing your own IP (free). We do not recommend IPv4 on a broker that supports IPv6; if you specifically need it, bring your own IP.
If your broker is IPv4 only — you pick one of three:
| Option | Price |
|---|---|
| Buy Premium Static IPv4 from us (recommended) — a dedicated IP we set up for you | ₹299 per month, 3-month minimum to start |
| Buy Standard Static IPv4 from us — an IP from our pool | ₹200 per month |
| Bring your own IP (BYOIP) — your own static IP proxy from a proxy vendor | Free |
Angel One is IPv4 only and the Standard pool option is not offered for it, so there you choose Premium or bring your own.
Full detail, including how the charge and renewal work: Static IP Setup and Static IP for broker API trading.
Your portfolio loads but orders still fail
Some brokers check the IP only when you place an order, not when you read data. Angel One works this way: it lets you read your portfolio from any IP address, but it accepts orders only from a static IP registered with them.
So a portfolio that loads perfectly does not mean the IP is set up. You would only find out at the moment you place your first real order. After you assign or change a static IP, place a small dummy order to confirm your broker accepts it.
Which IP do I register?
Register only the static IP that our system assigns to you in Step 1 below (the IP shown after you take it with the Static IP button, or your own BYOIP).
In most cases the IP shown in the broker’s error is that same assigned IP — you simply have not whitelisted it at the broker yet — so you register the IP from the error and it works. But the IP in the error is only the address the broker saw, and it is not always yours to register. If the IP in the error is different from the one our system assigned to you, do not add it to your broker. Adding the wrong IP will not fix the problem, and the IP in the error may not even belong to you. In that case, contact our support and we will check it for you.
How to fix it
You need to do two things. The IP must be set in our system and registered with your broker.
Step 1: Assign a static IP to the account in our system
- Go to the menu (Accounts -> Trading Accounts).
- Click the small EDIT icon next to your account’s client id or login id.
- Click the Static IP button and choose the option for your broker (see What you get for your broker above). The system reserves a static IP for you.
- IPv4: one primary IP is shown.
- IPv6: a primary and a backup IP are shown — register both.
- Note down the IP (or IPs) shown.
Keep enough balance in your wallet before you take the IP — the first charge is taken when the IP is assigned (or when you save a new account). See Static IP Setup.
Step 2: Register that IP in your broker’s API dashboard
- Log in to your broker’s API or developer dashboard.
- Add the IP (or IPs) from Step 1 to the broker’s IP whitelist / registered IP field — not the IP from the error message. Register all the IPs shown (both primary and secondary for IPv6).
- Save it on the broker side.
- Come back to our system, click Validate, and Save the account.
The exact field name is different for each broker, so see your broker’s setup guide for where to enter the IP. For more detail, read the Static IP Setup guide.