- Edited
The game does not show the device address from get_local_addresses (). It displays null instead. The problem arose during the test on the phone (everything is displayed on the PC)
What could be the problem?
Code:
`
var ip_default = IP.get_local_addresses()[0];
onready var dafault_ip_display = $default_ip_display;
func _ready():
get_tree().connect("network_peer_connected",self,"_connected")
for ip in IP.get_local_addresses():
if ip.begins_with("192.168."):
ip_default = ip;
pass
pass
dafault_ip_display.text = str(ip_default)+" ipdef";
print("default ip adress: "+str(ip_default));
pass
`