System.Network

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

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.

Notes

fa-info-circle-32.png
Network is not supported for mobile projects.

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