Gio.SocketConnection.prototype.get_local_address

function get_local_address(): Gio.SocketAddress {
    // Gjs wrapper for g_socket_connection_get_local_address()
}
  

Try to get the local address of a socket connection.

Since 2.22

Returns

a Gio.SocketAddress or null on error. Free the returned object with GObject.Object.prototype.unref.