Hi! First of all thank you for this amazing software!
I successfully tested in my lan today, and it worked like a charm on every mobile phone/browser i tested. I then tried to run it on my server, and now the problems began.
I have developed a signaling server with socket.io/node running on port 8089 on my AWS EC2 server, it’s proxied by NGINX, so on my client code i simply point to the signaling server to https://myserver:443/ and it redirects the requests and connection upgrade etc.
I’ve allowed ports 40000 - 49999 both UPD and TCP on my security group.
My server has a public domain (elastic ip in AWS naming convention) so my initial thought was to (according to the faq and documentation) use my public ip in the listenIps. { ip: ‘18.228.158.64’, announcedIp: null }
It turned out that it won’t work and will raise an exception in the server:
UnhandledPromiseRejectionWarning: Error: port bind failed due to address not available [transport:udp, ip:‘18.228.158.64’, port:40937, attempt:1/10000]
If I use { ip: ‘127.0.0.1’, announcedIp: ‘18.228.158.64’ } it will not raise this exception BUT it simply won’t
transport ea3b14c1-cd46-49c8-b2b6-599a71a8b79c connectionstatechange connecting…
transport connstate connecting
transport 388a61aa-e55b-46bd-8157-1a3b840d3043 connectionstatechange failed
transport closed … leaving the room and resetting
transport connstate closed
I know it is not code related because it is working at this very moment in my local network. It is just in the server that it wont work =(. I even tried using multiple listenIps but no luck!
Is it a known bug? Any guidance is much appreciated!
Thank you