:GetLocalAddress()
Class
Syntax
:GetLocalAddress() -> aIP_Port
Return
Two dimensional array of the IP Address and Port
IP Address of the local machine is specified in dot-notation.
Port is the numeric Port number of the current session.
If :GetHostAddress() fails, it returns an empty array.
If the method fails check :nErr and :cErr for more information.
Description
The :GetLocalAddress() method resolves the IP Address and Port for the current Session.
The IP address format is in common dot notation, with each byte of the address separated by a period.
The Port is a numeric interger indicating the Port connected with.
Note: this method requires the client be connected. see :Connect() or :ConnectEx()
See Also