How can we connect a pc and a phone

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

Hey, I made a chat room in Godot from http://www.narwalengineering.com/2018/07/01/godot-tutorial-simple-chat-room-using-multiplayer-api/ .
It worked when I used two pcs connected to the same wifis. But in my android phone( android 10 to be specific) it won’t even connect to either another phone or pc. While exporting I had checked the internet permission but still it doesn’t work.
How can I make it work. Thanks in advance :slight_smile:

Are the mobile phones on the same wifi network? If you’re attempting to communicate over the internet (so using the phone’s 3G/4G/5G cellular), the server’s port must be publicly accessible at the public IP address. I don’t have any experience with mobile networking in Godot unfortunately, so this is for someone else to answer fully.

Jimmio92 | 2021-01-29 00:58

yes they are connected to the same wifi and the same port. Still it doesn’t work.

vyom | 2021-02-05 03:52

Make the PC’s firewall settings to allow LAN/WIFI access for the specific port.

nightrobin | 2021-02-12 15:35

There is no issue with the firewall settings. Im able to connect two laptops.

vyom | 2021-02-16 12:04

I solved it
It seems that we have to look closely at the IP of the PC directly in the ethernet state, there is the real IP while Godot, due to my bad configuration, throws me another IP so that it is already there
In addition to that we must give permissions to the app before exporting with godot
Internet and Access network satate
With that the connection between pc and android is successful greetings!

lurgx | 2022-06-04 09:09