-
Notifications
You must be signed in to change notification settings - Fork 165
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
Support hostname as ICE candidate #512
Comments
I would be surprised if hostnames are valid as ICE candidates.. |
@stv0g Good question! I'm in unfamiliar territory when it comes to WebRTC/ICE but after some digging I found RFC 8839 §5.1-3 which states the following:
Whether that is the right RFC I am not sure. |
Hi @kantlivelong, RFC8839 should be the correct and most recent RFC in this regard. However, the RFC tells a bit more about FQDNs:
From what know there is currently no extension specification which defines the handling of FQDN candidates. There is also a related issue in the pion/webrtc repo: pion/webrtc#2300 Here are some more related links: |
@stv0g This sounds like a decent improvement to cover some advanced deployments (e.g. multiple network partitions). Do you know what would be the rough expectation implementation wise? |
@streamer45 trivial! I would follow the same pattern as mDNS. When you get a hostname attempt to resolve it a thread, and then add it on success. |
Thanks @Sean-Der, so that would be the client side implementation right? From the remote side of things I suppose there wouldn't be much to do other than allowing these hostnames to be advertised to clients? |
Oh yes! This is just for the client side. That might just work today with NAT1To1 in the SettingEngine. What happens if you do that today? |
Honestly I haven't tried but reading some of the related discussion it seemed that |
@Sean-Der As far as Line 100 in db5d7ea
As far as Line 54 in db5d7ea
The potentially tricky detail here would be how to determine the network type given we don't have an address and I don't believe we should resolve it either given the resolution is meant to happen on the client side and could be totally different. |
Summary
From what I've come to understand this library does not support using a hostname as an ICE candidate. Is this something that can be added?
Motivation
Obvious gains of using hostnames over IPs 😄
Describe alternatives you've considered
The only alternative is using a list of static IPs. Works but isn't great.
Additional context
AlexxIT/go2rtc#146
The text was updated successfully, but these errors were encountered: