Why a redirector
Real-Debrid and TorBox let the addon server resolve on your behalf by forwarding your IP. AllDebrid's /magnet/upload and /link/unlock endpoints return MAGNET_NO_SERVER when called from a datacenter IP, and there is no IP parameter. The only reliable way to originate AllDebrid calls from your residential IP is to run a tiny HTTP service on your machine that the Stremio player calls directly. The addon server makes zero AllDebrid API calls.
1. Get your AllDebrid API key
Sign in at alldebrid.com/apikeys and copy your API key.
2. Run the redirector
A single-file Python reference is shipped with the addon. Download it:
curl -O https://adult-addons.click/redirector/alldebrid_redirector.py
Install its three dependencies and start it:
pip install fastapi uvicorn requests uvicorn alldebrid_redirector:app --port 8282
It now listens on http://localhost:8282. The reference is a minimal FastAPI app: it takes a magnet, uploads it to AllDebrid, polls until ready, picks the largest video file, unlocks the link, and 302-redirects the player to the CDN URL. On any error or while the torrent is still downloading, it redirects to a short caching clip so playback never errors out. You can read and audit the file before you run it.
You can also write your own in any language. The contract the addon expects is:
GET /play?apikey=<ad_key>&magnet=<magnet_uri>&t=<title>&caching=<fallback_url> -> 302 to the AllDebrid CDN link, or 302 to <fallback_url> on error / while downloading
3. Point the addon at it
Open the TPB 4K Porn configure page. In the Debrid Providers card:
- Paste your AllDebrid API key into the AllDebrid API key field.
- An AllDebrid redirector URL field appears. Set it to
http://localhost:8282(or wherever your redirector runs).
Save and (re)install. AllDebrid streams now resolve through your redirector. Other debrid providers you have configured are unaffected.
4. Verify
Play an AllDebrid stream in Stremio. The redirector's console will log AllDebrid API calls from your residential IP, and Stremio will play the CDN link. An uncached magnet may show the caching clip first, then play on retry. If no stream appears at all, make sure both the API key and the redirector URL are set in the configure page.