Couldn't create an ENet multiplayer server

Godot Version

3.5

Question

I can’t create an ENet multiplayer server:

code:

extends Node

func _ready():
	with_multiplayerapi()

func with_multiplayerapi():
	var server = NetworkedMultiplayerENet.new()
	var err = server.create_server(2424)
	if err != OK:
		print("Unable to start server")
		return
	get_tree().network_peer = server
	get_tree().connect("network_peer_connected", self, "_player_connected")
	get_tree().connect("network_peer_disconnected", self, "_player_disconnected")
	print("Server created")

func _player_connected(id):
	print("Player connected: ", id)

func _player_disconnected(id):
	print("Player disconnected: ", id)

Knowing that this is not my first server, I used this same code in a previous project, but using a different port.