Static IP Setup Guide for API Traders

1. What is a static IP and why is it needed?

A static IP is a fixed internet address assigned to your device or server; it does not change when you reconnect.

SEBI and exchanges are moving to a model where API trading must come from a pre‑registered static IP, mapped to your API key / client code, to control abuse and identify the real origin of orders.

In simple terms: “If you are trading via API, you must send all order requests from one fixed machine / server IP that you share with your broker in advance.”

2. High-level options for getting a static IP

For a retail user, there are three practical ways to get a static IP: :house:

Static IP from your home / office ISP

  • Ask your broadband provider (JioFiber, Airtel, local ISP, etc.) for a static public IP plan.
  • They may charge a monthly fee; once activated, your router gets a fixed public IP that you can register with the broker.

Cloud server (VPS) with static IP

  • Rent a small VPS or cloud instance (e.g. AWS Lightsail, DigitalOcean, any Indian cloud provider).
  • Each VPS comes with its own static public IP which rarely changes.
  • Run your trading algorithm / app on that server, or tunnel requests via VPN/proxy.

Static IP service / gateway platforms

  • Third‑party platforms focused on “static IP gateway for algo trading”.
  • Provides a ready static Indian IP and simple VPN / proxy setup — no infrastructure management needed.

3. What will be restricted to static IP?

“Only order placement and modification/cancellation APIs require static IP whitelisting. You can still use market data / portfolio APIs from anywhere (no static IP needed).”

4. Step-by-step guide for retail users

  • Decide where you will run your algo

  • Get your static IP details

Regardless of the method, you need the public IPv4 address:

  1. On the machine/server where the algo will run, open a browser and search what is my IP.
  2. Note the IPv4 address shown (e.g. 123.45.67.89).
  3. This is the IP you must register with your broker as “Static IP for API trading”.

If you use VPN/proxy to route traffic via a gateway server, the IP that matters is the gateway’s public IP, not your local Wi‑Fi IP.

  • Register / whitelist static IP with Upstox
  1. Log in to Upstox Accounts .
  2. Go to "My App " → “New App and Fill the Form with App name”.
  3. Enter your static IP address (IPv4).
  4. Optionally add a secondary IP (backup server / office).
  5. Save / confirm.

Static IP changes are allowed only once every 7 days (as per exchange rules).

If orders are sent from any IP other than the registered static IP , those requests will be blocked .

5. Limits and rules

Industry reference

Recommended configuration

6. FAQ

Q: Can I use my office static IP?

Yes, as long as your algo always connects to the broker from that office network.

Q: What if my ISP changes my IP accidentally?

You will need to update the new IP in the broker’s static IP settings. If it’s within the 7‑day lock period, contact support.

Q: Can I trade manually from the app/website from other locations?

Typically yes — static IP restriction applies only to API order traffic, not manual app/web logins.