coturn turn 服务器错误 CREATE_PERMISSION 403: Forbidden IP

coturn turn server error CREATE_PERMISSION 403: Forbidden IP

我在 ec2 实例上使用接近默认配置的 coturn 部署了 turn 服务器。我无法使用此回合服务器连接到另一个对等方。它显示 iceConnectionState changed to disconnected on the connection with 错误,因为 peerjs 在浏览器控制台上登录,在 coturn 服务器日志上显示 incoming packet CREATE_PERMISSION processed, error 403: Forbidden IP 错误。如何解决这个问题? (修辞)

就我而言,This 回答绝对对我有帮助(虽然,这不是我的错误)。我只为 turnserver.conf 中的 external-ip 设置了 public dns。我将其设置为 public-ip/private-ip 并且有效。如下所示:

external-ip=13.some.thing.229/172.some.thing.else 现在连错误都明白了。