getaddress() Method

Returns the host name that was used to connect to the database.

Syntax

connection.getaddress()

Returns

Returns the host name that was used to connect to the database. The port number is not included.