diff --git a/internal/allocation/allocation-manager.go b/internal/allocation/allocation-manager.go index 6d1ccc18..b48988af 100644 --- a/internal/allocation/allocation-manager.go +++ b/internal/allocation/allocation-manager.go @@ -32,7 +32,7 @@ func CreateAllocation(fiveTuple *FiveTuple, turnSocket *ipv4.PacketConn, lifetim TurnSocket: turnSocket, } - listener, err := net.ListenPacket("udp", ":0") + listener, err := net.ListenPacket("udp4", "0.0.0.0:0") if err != nil { return nil, err } diff --git a/turn.go b/turn.go index 27b0c14d..507bae9a 100644 --- a/turn.go +++ b/turn.go @@ -21,5 +21,5 @@ type StartArguments struct { // Start the Pion TURN server func Start(args StartArguments) { - fmt.Println(server.NewServer(args.Realm, args.Server.AuthenticateRequest).Listen("", args.UDPPort)) + fmt.Println(server.NewServer(args.Realm, args.Server.AuthenticateRequest).Listen("0.0.0.0", args.UDPPort)) }