Skip to content
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

Cannot create socket for audio ... 97 (Address family not supported by protocol) #2821

Closed
RaniRaven opened this issue Nov 26, 2021 · 3 comments

Comments

@RaniRaven
Copy link

Hi all,

Attached is the issue we get when trying to start janus-gateway on linux docker.
We cannot figure out how to solve this issue, we belive it has something to do with the ipv6 support maybe, or something in the way the docker framework (local) on linux is handling the networking.
This is as the same image is running o.k. on Window's docker desktop

Would appreciate your advice about this.
janus-protocol-issue
.

@lminiero
Copy link
Member

Possibly related to #2508, as in BSD for instance you can't use an IPv6 socket to listen for both IPv4 and IPv6, which is what we do by default. Maybe your Linux configuration currently forbids it too. If so, just force ipv4 when creating the mountpoint (check the config file and documentation of the Streaming plugin for details).

@RaniRaven RaniRaven changed the title Cannot create socket for audio ... 978 (Address family not supported by protocol) Cannot create socket for audio ... 97 (Address family not supported by protocol) Nov 29, 2021
@RaniRaven
Copy link
Author

I've tried any offered configuration, nothing works. Janus-Gateway refuses to run for some reason when setting anything to IPv4 only, like changing the address to "0.0.0.0", or anything else. No matter what I do I cannot overcome the issue above. Could not find any relevant documentation on that issue.
Where is the explanation of how to overcome this issue is explained ? Cannot run janus-gateway in any constellation on Ubuntu's docker.

@lminiero
Copy link
Member

This is the point where we decide what kind of socket to create:
https://github.com/meetecho/janus-gateway/blob/master/plugins/janus_streaming.c#L5459

Try specifying an interface too, or a specific local IPv4. You may want to add some debug lines to print what the value of the family variable is when a socket is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants