Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC: Support listen at multiple UDP ports. #2848

Closed
Tracked by #2843
winlinvip opened this issue Jan 6, 2022 · 1 comment
Closed
Tracked by #2843

WebRTC: Support listen at multiple UDP ports. #2848

winlinvip opened this issue Jan 6, 2022 · 1 comment
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement. Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented Jan 6, 2022

Sometimes UDP8000 is not accessible, so supporting multiple UDP ports would be more appropriate.

IP:

  1. Internal IP
  2. API's IP
  3. Configuring CANDIDATE

Ports:

  1. 8000
  2. 180000

Protocols:

  1. UDP
  2. TCP

This way, there will be 6 candidates, and the connectivity will be excellent.

Choose one of the two protocols, UDP or TCP, to avoid priority routing and switching issues; mainly use TCP when UDP is completely unusable.

PS: There is also a TURN/TCP method, which actually uses TURN to convert TCP to UDP, without requiring additional work from the server. However, it requires users to deploy a TURN server separately, making it very inconvenient to use.

@winlinvip winlinvip changed the title SRS可能侦听多个UDP端口,返回多个candidate可用性会更高。 WebRTC: 侦听多个UDP端口,返回多个candidate可用性会更高 Jan 6, 2022
@winlinvip winlinvip self-assigned this Jan 6, 2022
@winlinvip winlinvip added Enhancement Improvement or enhancement. Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. labels Jan 6, 2022
@winlinvip winlinvip added this to the 5.0 milestone Jan 6, 2022
@winlinvip winlinvip changed the title WebRTC: 侦听多个UDP端口,返回多个candidate可用性会更高 WebRTC: Support listen at multiple UDP ports. 侦听多个UDP端口,返回多个candidate可用性会更高 Jan 2, 2023
@winlinvip winlinvip modified the milestones: 5.0, 6.0 Jan 2, 2023
@qiantaossx
Copy link

qiantaossx commented Jan 6, 2023

Is it possible to support full-ice on the basis of lite-ice? This way, deploying SRS behind NAT can be done without relying on public network candidates. SRS can be used as a P2P client.

@winlinvip winlinvip changed the title WebRTC: Support listen at multiple UDP ports. 侦听多个UDP端口,返回多个candidate可用性会更高 WebRTC: Support listen at multiple UDP ports. Jul 18, 2023
@ossrs ossrs locked and limited conversation to collaborators Jul 18, 2023
@winlinvip winlinvip converted this issue into discussion #3643 Jul 18, 2023
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement. Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

No branches or pull requests

3 participants