network_peer is null

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Bimi124

Hello everybody!
After I run this function bellow get_tree().get_network_peer() returns still null.

func _create_server():
    var network = NetworkedMultiplayerENet.new()
    network.create_server(port, 1)
    get_tree().set_network_peer(network)

By the way: I’m testing LANServerBroadcast so i’ve added this plugin to my project