Menu

1 / 2

How I Coordinate Scripts Across Devices Without Open Ports, Firebase, or a VPS

DEV Community·D_SECURITY·6 months ago
#rfsEAUxu
#python#termux#automation#flask#phone
Reading 0:00
15s threshold

My scrapers run on PythonAnywhere. My phone runs Termux. I wanted them to talk to each other.

The standard options all had the same problem: they required infrastructure I didn't want to maintain.

Firebase — cloud lock-in, SDK overhead, costs money at scale

Ngrok — exposes a port on my phone, dies when the tunnel resets

A VPS with Redis — another server to maintain, SSH into, keep alive

Webhook to phone — my phone is behind NAT, no open ports

The fundamental issue: cloud scripts push, but phones can't receive pushes without an exposed port or a cloud intermediary.

So I flipped the model. Instead of the cloud pushing to the phone, the phone pulls from a neutral server. Workers poll outbound. No open ports needed. Works behind any firewall.

That's Intent Bus .

How It Works

A lightweight Flask server sits between your scripts and your workers. Scripts post jobs ("intents") to it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.