TCP ice candidates for playback do not include a publicly accessible ip
vtsatskin opened this issue · 10 comments
Issue
Short description
TCP ice candidates do not include publicly accessible IPs
Environment
- Operating system and version: Ubuntu 5.4.0-6ubuntu1~16.04.10
- Java version: openjdk version "1.8.0_212"
- Ant Media Server version: Enterprise Edition 1.6.2 20190323_0908
- Browser name and version: Google Chrome Version 74.0.3729.131
Expected behavior
We are looking to use a TCP connection during WebRTC playback. We try to accomplish this by filtering out any UDP ice candidates. However, we are unable to establish a connection because TCP candidates do not include a publicly accessible ip. UDP candidates include these.
Actual behavior
UDP candidates include public IPs but TCP candidates do not. This causes us unable establish a connection over TCP.
Steps to reproduce
Our security groups on AWS:
Incoming
Outgoing
Added to backlog for 1.8.0
Same problem with AWS.
May I learn the reason why you've closed this issue @vtsatskin ? It was our roadmap for 1.8.0.
@mekya sorry! This was an accident due to a PR in a private repo referencing this issue somehow automatically closing this issue. It's still an issue.
Thank you @vtsatskin ,
I'll re-schedule it for 1.8.0 version
Also: tried to use settings.webrtc.tcpCandidateEnabled=false
to get around this, no go, does nothing, client is still trying to connect over TCP.
Having the same problem too with Enterprise
Let me help about that.
Set the following properties in apps properties( webapps/WebRTCAppEE/WEB-INF/red5-web.properties
) file.
settings.replaceCandidateAddrWithServerAddr=true
Set the server name in conf/red5.properties. Use public ip address for server.name
server.name=
I hope it helps.