arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.4k stars 3.51k forks source link

ipv6 support #1507

Open Craytor opened 4 years ago

Craytor commented 4 years ago

Does nginx-rtmp-module support connections over ipv6?

tnias commented 2 years ago

tl;dr: use listen [::]:1935;

Using listen 1935; as shown in the examples, seems to only listen to ipv4.

From the listen directive syntax documentation, I expected this to listen on ipv4 AND ipv6. It does not.

Only when specifying an ipv6 address like listen [::]:1935;, it listens for both.

Side note: To only listening on v6 try listen [::]:1935 ipv6only=on;, because listen 1935 ipv6only=on; will only listen for ipv6.


From the documentation:

syntax: listen (addr[:port]|port|unix:path) [bind] [ipv6only=on|off] [so_keepalive=on|off|keepidle:keepintvl:keepcnt|proxy_protocol]

smk462 commented 1 week ago

@tnias no.that's not work.only ipv4 can reach