I finally solved it. This(how to configure mediasoup server api in ec2 aws - #4 by nazar-pc)
gave me a clue of what could be wrong as it was also running on an ec2 instance.
What did I change?
-
I changed my upd port from a single port to a range of ports. (Careful if you are running docker as opening too many port range can stall startup)
-
I removed the rtcMaxPort on my workers setting as they are also deprecated. My port setting in my webRtcTransportOptions was also outside the bounds of this defined rtxMax and rtxMax Ports. This is what i believe is the real reason for my troubles.
-
I changed my webRtcTransportOptions listenIp property to listenInfos as listenIp is now deprecated(Not sure this is a problem as listenIp is still in the docs so I assume still currently supported)
-
I replaced the singular port in my listenIp(now listenInfos) property of the webRtcTransport to use the same port ranges I had opened.
Took me the whole day yesterday. But happy its finally sorted. Phew!