{"id":20325115,"url":"https://github.com/origamiofficial/docker-ngrok-plex","last_synced_at":"2026-03-04T23:02:39.016Z","repository":{"id":81850378,"uuid":"524282345","full_name":"origamiofficial/docker-ngrok-plex","owner":"origamiofficial","description":"Run Plex Through Ngrok to Bypass CGNAT or Double-NAT Scenario","archived":false,"fork":false,"pushed_at":"2025-04-09T01:04:05.000Z","size":95,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T02:20:35.360Z","etag":null,"topics":["bypass","bypass-cgnat","cgnat","docker","docker-container","docker-image","docker-plex","double-nat","nat","ngrok","ngrok-script","plex","plex-api","plex-docker","plex-media-server","plex-server","plexmediaserver","port-forward","port-forwarding","script"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/rlabinc/ngrok-plex","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/origamiofficial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-13T02:46:30.000Z","updated_at":"2025-04-09T01:04:09.000Z","dependencies_parsed_at":"2023-12-10T01:40:28.846Z","dependency_job_id":"72ffb146-ba55-4a71-bd51-6a3a6e19c778","html_url":"https://github.com/origamiofficial/docker-ngrok-plex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origamiofficial%2Fdocker-ngrok-plex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origamiofficial%2Fdocker-ngrok-plex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origamiofficial%2Fdocker-ngrok-plex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/origamiofficial%2Fdocker-ngrok-plex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/origamiofficial","download_url":"https://codeload.github.com/origamiofficial/docker-ngrok-plex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468525,"owners_count":21108835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bypass","bypass-cgnat","cgnat","docker","docker-container","docker-image","docker-plex","double-nat","nat","ngrok","ngrok-script","plex","plex-api","plex-docker","plex-media-server","plex-server","plexmediaserver","port-forward","port-forwarding","script"],"created_at":"2024-11-14T19:38:46.126Z","updated_at":"2026-03-04T23:02:38.962Z","avatar_url":"https://github.com/origamiofficial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngrok-plex \n![Docker Pulls](https://img.shields.io/docker/pulls/rlabinc/ngrok-plex.svg?style=flat\u0026label=pulls\u0026logo=docker) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/rlabinc/ngrok-plex/latest.svg?style=flat\u0026label=image\u0026logo=docker) [![Latest Build \u0026 Push](https://github.com/origamiofficial/docker-ngrok-plex/actions/workflows/build-and-push.yaml/badge.svg)](https://github.com/origamiofficial/docker-ngrok-plex/actions/workflows/build-and-push.yaml) ![GitHub Repo stars](https://img.shields.io/github/stars/origamiofficial/ngrok-plex?style=social) ![We Support](https://img.shields.io/badge/we%20stand%20with-%F0%9F%87%B5%F0%9F%87%B8%20palestine-white.svg)\n\n[ngrok-plex](https://gist.github.com/nagleaidan/dcc132c16d15565d88bf2d9200351c6e) is a command line utility to run Plex through ngrok to bypass CGNAT or Double-NAT scenario.\n\n\u003e [!NOTE]\n\u003e ngrok free accounts are [bandwidth-limited](https://github.com/origamiofficial/docker-ngrok-plex/issues/33) to 1GB per month. You need to have a Pay-as-you-go plan for this project, see pricing [here](https://ngrok.com/pricing).\n\n## Supported Architectures\n\nWe utilise the docker buildx for multi-platform awareness. More information is available from docker [here](https://docs.docker.com/buildx/working-with-buildx/).\n\nSimply pulling `rlabinc/ngrok-plex:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.\n\nThe architectures supported by this image are:\n\n| Architecture | Available | Platform |\n| :----: | :----: | :----: |\n| x86-64 | ✅ | linux/amd64 |\n| arm64 | ✅ | linux/arm64 |\n| armhf | ✅ | linux/arm/v7 |\n| i386 | ✅ | linux/386|\n\n## Usage\nYou will have to extract the Plex token sets for you and provide it to the CLI. But don't worry, I'll guide you through the entire process.\n\nThe `Enable Relay` must needs to be DISABLED from `Settings` \u003e `Server` \u003e `Network` \u003e `Show Advanced` \u003e `Enable Relay`\n\n## Extracting the Plex token\n- Go to any media in your Plex library.\n- Go to the Kebab Menu (⋮)\n- Click on `Get Info`\n- Click on `View XML` — a new tab should open up.\n- Go to the very end of the URL. You should see a 20 character string after `X-Plex-Token=`. Copy this string.\n\nHere are the commands you'll need:\n\n```bash\ndocker run -d --network host \\\n  --name=ngrok-plex \\\n  -e TZ=Europe/London `#optional` \\\n  -e PLEX_BaseURL='http://172.17.0.1:32400' `#better to use single quotes` \\\n  -e PLEX_Token='XXXXXXXXXX' `#better to use single quotes` \\\n  -e NGROK_Token='XXXXXXXXXX' `#better to use single quotes` \\\n  rlabinc/ngrok-plex:latest\n```\n\nA cronjob will update new ngrok URL every 2 hours.\n\n## Parameters\n\nContainer images are configured using parameters passed at runtime (such as those above).\n\n| Parameter | Function |\n| :----: | --- |\n| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |\n| `-e PLEX_BaseURL='http://172.17.0.1:32400'` | Specify Plex URL to use. |\n| `-e PLEX_Token='XXXXXXXXXX'` | Specify Plex token to use. |\n| `-e NGROK_Token='XXXXXXXXXX'` | Specify ngrok token to use. |\n\n## Cons\n* Client IP will always show as `localhost`.\n* No bandwidth guarantees.\n\n## Contribution\nThere is no need to update the script version if you have made changes – it will be updated automatically.\n\n## Github Repository\nhttps://github.com/origamiofficial/ngrok-plex\n\n## Docker Hub\nhttps://hub.docker.com/r/rlabinc/ngrok-plex\n\n## Acknowledgements\nScript credit goes to [@nagleaidan](https://github.com/nagleaidan). Special thanks to [@Rihcus](https://github.com/Rihcus) for fixing many issues.\n\n## Warning\nUse of this software may constitute a breach in the [ngrok Terms of Service](https://ngrok.com/tos). Use at your own risk.\n\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/origamiofficial/docker-ngrok-plex\u0026icon=github.svg\u0026icon_color=%23FFFFFF\u0026title=hits\u0026edge_flat=false)](https://github.com/origamiofficial/docker-ngrok-plex)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigamiofficial%2Fdocker-ngrok-plex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forigamiofficial%2Fdocker-ngrok-plex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forigamiofficial%2Fdocker-ngrok-plex/lists"}