Godot lan multiplayer

Godot Version

4.4

Im trying to make lan multiplayer system but join is not working idk why what im missing. My setup for testing > phone1(hotspot is on) phone2(connected). phone1 → hosting
Phone2 → one label is listing all ips and i tried all of them but not join
*I turn on every network/internet/location permission when exporting

class_name EnetConnectionManager
extends PanelContainer

signal Server_created
signal Server_joined

@warning_ignore("unused_signal")
@export var hostip: LineEdit
@export var hostport: LineEdit

var peer = ENetMultiplayerPeer.new()

func _on_join_pressed() -> void:
	peer.create_client(hostip.text,int(hostport.text))
	multiplayer.multiplayer_peer = peer


func _on_host_pressed() -> void:
	peer.create_server(int(hostport.text))
	multiplayer.multiplayer_peer = peer
	Server_created.emit()

-------
extends Node

@onready var world: World = $World

func _on_connection_manager_hosting() -> void:
	world.spawn_player(1)
	
	multiplayer.peer_connected.connect(
		func(pid) -> void:
			world.spawn_player(pid)
	)

/Not complete code/

I dont see a any of the typical signal handling from the multiplayer api, so that could be a problem.

But also, if one phone is a hotspot provider, i do not know if the router-phone will actually be on the LAN with its client devices.

You could use the IP class to get the addresses of all the interfaces of a device to confirm. probably by seeing if the hotspot phone has an address that is similar to a client.