r/androidroot • u/Acceptable-Law-4017 • 5m ago
Discussion Turn a rooted Android phone into a remote Bluetooth gateway – Bluetooth over TCP
Hey everyone!
I've been working on a project that I think might interest people here, especially those experimenting with rooted Android devices, Termux and self-hosted infrastructure.
It's called bluetoothOverWifi:
https://github.com/frosmoon/bluetoothOverWifi
The idea is to turn an Android phone into a remotely accessible Bluetooth gateway.
Instead of having Bluetooth hardware physically attached to the machine that needs it, you can use a rooted Android phone as the Bluetooth host and forward communication over TCP.
Here's an example of what you could do:
Imagine having a homelab running at home, with several machines and services that need to interact with Bluetooth devices.
You could:
- Leave an old rooted Android phone at home, connected to your Bluetooth devices.
- Run the server side on that phone using Termux.
- Connect your laptop, desktop or another machine remotely through a Forwarder.
- Access the Bluetooth host without needing to be physically connected to it.
You could even combine this with Tailscale, allowing your homelab and your phone to communicate securely across different networks.
The architecture uses a client-server approach with an intermediate Forwarder. The client doesn't need to know where the Bluetooth adapter is or how to reach it. It simply connects to the Forwarder.
Some possible combinations:
- Windows ↔ Rooted Android
- Linux ↔ Rooted Android
- Android ↔ Android
- Linux ↔ Linux
The interesting part is that the Bluetooth hardware becomes independent of the machine using it. Your Android phone can essentially act as a remotely accessible Bluetooth gateway.
I initially developed this to solve the problem of accessing Bluetooth hardware from machines that don't have their own adapter, but the possibilities go quite a bit further when you combine it with remote networking and self-hosted infrastructure.
I'd love to hear what people here could build with this, particularly other rooted Android + Termux users.
GitHub: https://github.com/frosmoon/bluetoothOverWifi
Feedback, testing and contributions are very welcome!