Documentation states for
listenInfo: Listening protocol, IP and port objects in order of preference (first one is the preferred one).
How does this exactly work if I’ve enabled both UDP/TCP and preferTCP for creating transport but the webRtcServer has in order:
{ protocol: "udp", ip: "0.0.0.0", announcedIp: IP.Public, port: 15000 },
{ protocol: "tcp", ip: "0.0.0.0", announcedIp: IP.Public, port: 15000 }
Will both protocol port bindings apply?
What if there were multiple ports for any of the protocols how would that work as well. ex:
{ protocol: "udp", ip: "0.0.0.0", announcedIp: IP.Public, port: 15000 },
{ protocol: "tcp", ip: "0.0.0.0", announcedIp: IP.Public, port: 15000 },
{ protocol: "tcp", ip: "0.0.0.0", announcedIp: IP.Public, port: 15001 }
Would the port 15001/tcp be functional/listening and used at all?
Some insight be nice.
Not sure if we can get a rtcMinPort/rtcMaxPort option as well in cases we have already in use ports when running many instances of soup. When we create it, it’d look like this.
{ protocol: "udp", ip: "0.0.0.0", announcedIp: IP.Public, rtcMinPort: 15000, rtcMaxPort: 15032 },
{ protocol: "tcp", ip: "0.0.0.0", announcedIp: IP.Public, rtcMinPort: 15000, rtcMaxPort: 15032 }
Idea here is once available port is found, bind it.