Network

From Xojo Documentation

Revision as of 01:08, 30 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.