Topic was automatically imported from the old Question2Answer platform.
Asked By
desik
Old Version
Published before Godot 3 was released.
Hi!
For my mobile game I need to check if user has a internet connection.
It will be used to decide is should show him a form to send a leaderboard entry to the server. Is there any easy way to do such check? Maybe some online/offline events like on the native Android?
you could just try to connect to the server with the leaderboard.
If no connection: do nothing or tell the player
If connection possible: update leaderboard
When I run the game without connection:
_resolve_hostname: getaddrinfo failed! Cannot resolve
maxiproduksiyon | 2020-11-16 16:48
Did you solve this problem?
pclight | 2021-03-08 14:22
Hi,
I couldn’t try it on Godot 3.2.3. You have to choose trusted hostname which has quick response such as www.google.com. I think, the problem is your host. It isn’t resolving by Godot.
Çağdaş Çağlak | 2021-03-08 19:06
Hi, thank you for your answer.
I also use www.google.com. It gives this error when disconnected and continues until I reconnect. Connection quality can also be a consideration.