nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

ipv6 support

Open Craytor opened this issue 6 years ago • 2 comments

Does nginx-rtmp-module support connections over ipv6?

Craytor avatar Apr 19 '20 22:04 Craytor

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]

tnias avatar Jan 30 '22 23:01 tnias