question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker + WebRTC Port ranges

See original GitHub issue

Not really an issue, more of a query…

I’m trying to configure geckos to run in a docker image for local dev and testing. I’ve been debugging why geckos can’t seem to connect to the server and narrowed it down to not forwarding a wide range of ports that gets returned from the “additional-candidates” request (http://localhost:9208/.wrtc/v1/connections/HoFlaeDUQ6IsUan1CO4dTIbz/additional-candidates).

image

As far as I can tell, these ports seem to vary quite wildly. Is there any way to configure the range, or maybe get a list of which ports I need to port forward? I’ve tried something like 5000-65000 but then I just hit a file limit 😕

Here’s my current docker-compose configuration:

version: '3'
services:
    client:
        image: nginx
        volumes:
            - ./bin/www:/usr/share/nginx/html
        ports:
            - '${PORT:-8080}:80'
    server:
        image: node:13
        command: bash -c "yarn --production && node server.js"
        volumes:
            - ./bin:/app
            - ./package.json:/app/package.json
            - ./yarn.lock:/app/yarn.lock
            - yarn-cache:/root/.yarn-cache
        working_dir: /app
        ports:
            - '9208:9208/tcp'
            - '9208:9208/udp'

volumes:
    yarn-cache:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
yandeucommented, Jul 30, 2020

Done! Will be available in v1.7.0

2reactions
yandeucommented, Jul 24, 2020

Ok. I will see what I can do 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Port Range Docker · Discussion #1869 · pion/webrtc - GitHub
Hi, I'm running pion in a docker container and I'm just wondering what ports I need to expose. Is there a port range?...
Read more >
How to use Docker with WebRTC in production - Flashphoner
—ip-range — address range for the subnet, containing addresses that Docker will assign to containers. Configuring WCS. Containers will be put under load...
Read more >
j796160836/webrtc-docker - Docker Image - Docker Hub
About port publish: 8080 is used for room server;; 8089 is used for signal server;; 3033 is used for ICE server;; 3478 and ......
Read more >
WEBRTC MCU/SFU inside kubernetes - Port Ranges?
How can I expose a port range using kubernetes. Short answer: You cannot. To elaborate a bit more, as Yorgos Saslis mentioned here....
Read more >
What is the downside of using smaller set of UDP ports in ...
In all cases, the server SHOULD only allocate ports from the range 49152 - 65535 (the Dynamic and/or Private Port range [Port-Numbers]),.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found