Can you connect to a Godot server from mobile?

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

Hello everyone

I made a very simple project in which my desktop joins without problems to the server over the internet , but the exact same project does not connect to it when I go mobile :frowning:

Do someone know why? Is there a fix to it?

Thankyou!

It could be a lot of things. Are you using mobile data or wifi? Can the two devices see each other? Are you using the correct IP address? Is your project an HTML export, in which case you’ll need to use HTTPS and all the certificates around that, assuming you are connecting via HTTP.

SteveSmith | 2023-03-03 11:40

:bust_in_silhouette: Reply From: Wakatta

Going out on a limb here by assuming you meant Android by saying mobile

You will need to have the following permissions enabled.
They can be found in Project > Export > Options

  • Internet (mandatory)

  • Access Network State (mandatory)

  • Access Wi-Fi State

  • Change Network State (mandatory)

  • Change Wi-Fi State

  • Bluetooth (if using)

Additional reading

Importance of permissions

Thank you very much! Now it works like a charm :slight_smile:

Andrew2022 | 2023-03-03 13:43