This plugin adds functionality to detect intenet connection in Godot apps. It just checks if device intenet is on or not.
- For your infomrmation, this plugin only checks if Internet is on or not and do not wait for any server reply tatus.
-
Steps:
- download release archive from Github
- unzip the release archive
- create a new folder in your main Godot project
- rename folder to "addons"
- copy unzipped folder to addons folder
- enable the plugin via the
Pluginstab ofProject->Project Settings...menu, in the Godot Editor
-
Add
Godot Internet Status Detectas a child node where you want to use. -
Reference that plugin node in your
script. -
like:
@onready var internet: Node2D = $"your/node/path/in/tree"- First it will check for Internet connection by default via
func _ready(delta)function when loading. - After that it will store the Status as
boolinstatusvariable. - You can access that variable with:
func _process(delta) var status = ("Internet Node reference").status-
- Make sure to access
.statusin_process(delta)function.
- Make sure to access
- Returns
void. - Updates current status and stores in above
statusvariable. - You can use this function in any trigger like
on_button_pressed()to update status
- First it will check for Internet connection by default via
There are two signals has_internet and no_internet, emitted when internet is active and internet is not active respectively.

@onready var internet: Node2D = $"Internet"
#reference Internet node
var status: bool
func _process(delta: float) -> void:
status = internet.status
#Check internet status on button press
func on_button_pressed():
internet.get_status()