#Why Making the mobile server in local host games just breaks it?

10 messages · Page 1 of 1 (latest)

swift turtle
#

I have been working on making a local multiplayer game but the connection doesn't work, It works when I use mobile (as client) and pc(as server) or both client and server as pc. But when I try to make the mobile the server its just chaos.
Maybe I know the problem but cant actually find solution anywhere. See when I try to host a server in mobile the ip which shows in mobile is IPV6 and the ip showed by pc is IPV4 but when I tried to join with both ips(IPV4 and 6) the client can't find the server on that ip.
For your information I have already turned on the necessary export settings + I tried joining with other phone with same IPV6 it just don't work.
What can be the actual problem or the right solution?

wintry surge
#

Are there some error messages? (I haven't debugged android remotely yet with godot, but there should be an possibility I think)
Which export settings have you checked?

swift turtle
#

No there's no error in the console showing when I try to join with pc Or mobile and it also not showing any error when I make a mobile server

#

@wintry surge I have checked Netstat..... And Internet

wintry surge
#

Can you post the part of the code that handles the server hosting and joining?
It would also be interesting if it fails immediately or after some time (as for instance connection timed out)

swift turtle
#

@wintry surge Here

olive crest
swift turtle
#

I fixed it don't worry I added this line to my code-:

For i in IP.get_local_addresses ():
If i.begins_with('192.168'):
ipaddress = i

So it only choose and make server on IPV4 which solved it

#

@olive crest @wintry surge thx for support