Network

From Xojo Documentation

Module

Enables you to access certain properties of the networking environment. You access the Network module from the System module.

Methods
IsConnected WakeOnLAN
LookupIPAddress

Notes

The LookupDNSAddress and LookupIPAddress methods return empty strings on errors but return the string that was passed to the function if the address could not be resolved.

Examples

The following call returns the IP address for Wikipedia.

Var IPAddress As String
IPAddress = System.Network.LookupIPAddress("wikipedia.org")
If IPAddress <> "" Then
MessageBox(IPAddress)
Else
MessageBox("An error occurred")
End If

See Also

System module.