Gio.NetworkAddress.prototype.get_port

function get_port(): Number(guint16) {
    // Gjs wrapper for g_network_address_get_port()
}
  

Gets addr's port number

Since 2.22

Returns

addr's port (which may be 0)