System.Network

From Xojo Documentation

Read-Only Property (As Network )
NetworkValue = aSystem.Network

New in 2005r1

Supported for all project types and targets.

Provides access to the methods of the Network module. They enable you to verify whether the computer is connected to a network and, if so, to look up DNS and IP addresses.

Example

The following call returns the IP address for the realsoftware.com domain name.

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