CESNET / UltraGrid

UltraGrid low-latency audio and video network transmission system
http://www.ultragrid.cz
Other
492 stars 53 forks source link

uv does not understand -Nholepunch as documented #251

Closed reduzent closed 1 year ago

reduzent commented 1 year ago

I would like to test setups where both uv instances are running behind a NAT. The wiki suggests that there is a holepunch method for the flag -N. So, I installed nat-helper and a STUN server on a server with a public address and tried to run uv as follows:

./UltraGrid-1.7.6-x86_64.AppImage --tool uv -r jack -s jack --audio-codec PCM --audio-capture-format channels=2 -P30104:11064:5016:5014 -Nholepunch:room=testi:server=telematic.zhdk.ch

and I get:

stat: /tmp/.mount_UltraGLQtNbO/usr/lib/libselinux.so.1: no version information available (required by stat)
UltraGrid 1.7.6 (tags/v1.7.6^0 rev c019d8b2 built Aug 23 2022 06:39:16)

Display device   : none
Capture device   : none
Audio capture    : jack
Audio playback   : jack
MTU              : 1500 B
Video compression: none
Audio codec      : PCM
Network protocol : UltraGrid RTP
Audio FEC        : none
Video FEC        : none

[NAT] Wrong renewal interval: room=testi:server=telematic.zhdk.ch, minimal: 31
Exit

It looks like uv thinks room=testi:server=telematic.zhdk.ch is a renewal interval. Am I doing something wrong or is the documentation outdated?

mpiatka commented 1 year ago

Hello,

The holepunch method for NAT traversal is not yet available in the stable releases. To use it, please try the continuous builds.

reduzent commented 1 year ago

Ah, good to know. Many thanks!

reduzent commented 1 year ago

It works in my test setup. This is exciting!