Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

How I Got a Static IP from ACT Broadband for SEBI Compliance to run Algo Trading Systems

5 min read

If you are an algo trading user trying to adapt to SEBI’s static IP requirement, getting a static IP for your home setup can feel more complicated than it really is. I went through this process myself with ACT Broadband, and it turned out to be much simpler than I expected.

I run my algo trading system locally on my Mac and wanted a setup that was reliable, compliant, and easy to manage every day. Like many retail traders, I was not looking to build a full server environment at home. I just needed a clean way to make sure my broker could identify my connection through a fixed public IP address.

That is exactly where a static IP comes in.

For users running local algo trading tools such as OpenAlgo, this kind of setup can be surprisingly practical. You get the benefit of a compliant trading environment without having to overengineer everything.

Why I Needed a Static IP for Algo Trading

The core requirement was straightforward. My broker needed to see API requests coming from one fixed public IP address so that it could be whitelisted on the developer portal.

This is where many algo trading users get confused. A static IP is not about making your system public or hosting your platform for the world to access. It is simply about ensuring that your outbound requests carry a fixed identity that your broker recognizes.

For a local algo trading setup, that matters a lot. If your trading system sends requests from a changing public IP, broker level access controls become difficult to manage. With a static IP, that problem goes away.

Calling ACT Broadband

I called ACT customer support and asked if they could assign a static IP to my existing broadband connection. The support team told me it would cost ₹350 per month. Since I was already on an annual broadband plan, they asked me to pay for twelve months upfront.

A few minutes after the call, I got a callback from technical support. The technician asked me for my current IP address, checked a few things on his side, and then confirmed that the static IP had been activated. He also mentioned that billing for the static IP would start immediately and that I could call later if I ever wanted it removed.

That was the whole process.

No technician visit. No hardware replacement. No router swap. No downtime.

For something that sounds technical and complicated, the actual experience was refreshingly simple.

How I Verified the Static IP

After activation, I wanted to confirm that the IP was truly static.

I checked my IP by opening the OpenAlgo IP page in my browser at openalgo.in/ip.

It showed my public IP.

Then I restarted my router and opened the same page again. The result remained the same, which confirmed that the connection was now using a static IP.

For algo trading users, this is the most important test. If the IP remains unchanged across restarts, you have the consistency needed for broker whitelisting.

My Algo Trading Setup on Mac

My trading system runs locally on my Mac. The setup is minimal and works well for day to day use.

FLASK_HOST_IP='127.0.0.1'
FLASK_PORT='5000'
HOST_SERVER='http://127.0.0.1:5000'

I start the application with:

uv run app.py

Then I access it in the browser at:

http://127.0.0.1:5000

This is one reason I like using OpenAlgo for a local setup. It keeps things simple. I do not need to deploy a cloud server just to run my own algo trading workflows. I can keep the system on my machine, operate it locally, and still have the broker see requests from the static public IP assigned to my broadband connection.

That is what actually matters for compliance.

The Part That Made Me Curious

Once the static IP was working, I started wondering whether I should expose the app beyond my own machine.

What if I wanted to access it on my phone? What if I wanted to reach it from outside home? Would I need to bind the app to all interfaces? Would I need port forwarding? Would I need a firewall?

So I tested it.

I changed the host binding from 127.0.0.1 to 0.0.0.0, restarted the app, and checked whether it was listening on port 5000.

lsof -i :5000 -P -n

The output confirmed that the service was listening on all interfaces.

On my local network, it worked. I could access the app using my Mac’s LAN IP from inside the home network.

But public access still failed.

That is when the networking part became clear.

Why a Static IP Does Not Automatically Mean Public Access

This is the distinction every algo trading user should understand.

A static IP gives your internet connection a fixed public identity. It does not automatically expose your local machine to inbound internet traffic.

My Mac sits behind a home router on a private local network. The router holds the public IP. So when an incoming request hits that public IP on port 5000, the router has no idea which internal device should receive it unless I explicitly configure a forwarding rule.

Without port forwarding, the request simply goes nowhere.

This is normal NAT behavior on home broadband connections.

So yes, I had a static IP. But no, that did not mean my local trading app was suddenly accessible from the internet.

Did I Actually Need Port Forwarding?

For my use case, not at all.

That was the biggest takeaway from the whole exercise.

My algo trading workflow is outbound. I log in locally, place orders, and my system sends requests out to the broker API. The connection is initiated by my machine. The router allows that outbound traffic and sends it using my static public IP. The broker sees the whitelisted IP and allows the request.

That is enough.

I am not trying to let external systems connect into my trading system. I am not using my home setup as a public server. I just need my orders and API traffic to go out through a fixed IP address.

For most retail algo trading users running locally, that is the actual requirement.

Did I Need a Firewall?

Also no, not for this setup.

When the application binds to 127.0.0.1, it only accepts connections from the same machine. It is not open to other devices on the home network and not visible on the public internet.

That means there are no publicly exposed ports in this configuration.

A firewall becomes important when you expose services beyond localhost. But if your algo trading app is running locally and nothing is being forwarded to the outside world, then there is no real external attack surface to protect.

This is one reason a local OpenAlgo style setup can be so practical for retail traders. It keeps the operating model simple while avoiding unnecessary exposure.

When You Would Actually Need More Infrastructure

There are cases where you would need more than this.

If you run your algo trading system on a VPS or cloud server, then firewall rules become essential.

If you configure your home router to forward ports into your machine, then you are creating internet facing exposure and need to secure it properly.

If you run on a shared network and bind to all interfaces, then you need to think carefully about who else can reach the service.

But if your goal is simply to run your algo trading system locally and make sure all broker requests originate from a whitelisted static IP, then none of that complexity is necessary.

My Final Setup

After testing everything, I went back to the simplest configuration because it was also the most practical one.

FLASK_HOST_IP='127.0.0.1'
FLASK_PORT='5000'
HOST_SERVER='http://127.0.0.1:5000'

On the broker side, I use my callback URL on localhost and whitelist the static public IP assigned to my ACT connection.

My daily routine is simple:

  1. Turn on my Mac
  2. Start the app
  3. Open it locally in the browser
  4. Log in to the broker
  5. Trade normally

That is enough to run my algo trading system in a compliant and manageable way.

What I Do Not Need

For this setup, I do not need a public domain, SSL certificates, reverse proxies, port forwarding, or a full cloud server stack.

I also do not need to make the app public just because I have a static IP.

That distinction is important. A static IP solves the identity problem for outbound broker communication. It does not force you into building an internet facing deployment.

What I Actually Need

What I really need is much simpler:

A static IP from ACT Broadband

A stable internet connection

My computer running during trading hours

A local algo trading setup that can reliably send requests to the broker

That combination is enough for my use case and, I suspect, for many other retail algo trading users as well.

Final Thoughts

The biggest lesson for me was that static IP compliance for algo trading is much simpler than it first appears.

You do not need to overcomplicate your setup. You do not need to expose your machine to the public internet. You do not need enterprise style infrastructure just to stay compliant.

You need a fixed public IP, a stable local environment, and a trading system that routes outbound requests correctly.

For algo trading users who want a practical way to operate from home, that makes a lot of sense. And if you are using a platform like OpenAlgo, the local first approach feels especially natural because it lets you keep control of your setup while staying lightweight.

In my case, ACT handled the static IP activation quickly, the local setup remained simple, and the end result was exactly what I wanted: a compliant, reliable environment to run algo trading systems from home.

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More