LocalHostName
The LocalHostName function returns the name of the local host system. This is read-only property and is unavailable at the design time. The value returned is a string.
Syntax: sValue = oSocket.LocalHostName
sValue (String) the name of the local host
Group: Socket Object
Example:
Dim WithEvents oSocket As Socket ' module level Dim
Dim sName As String
Set oSocket = New Socket
sName = oSocket.LocalHostName