Network.IsConnected

From Xojo Documentation

Method

Network.IsConnected() As Boolean

Supported for all project types and targets.

Returns True if connected to a network.

Example

This example tests whether the user is connected to the network.

If System.Network.IsConnected Then
MessageBox("You're connected to the network.")
Else
MessageBox("You're not connected to the network.")
End If