Gio.SocketClient.prototype.set_local_address
function set_local_address(address: Gio.SocketAddress): void {
// Gjs wrapper for g_socket_client_set_local_address()
}
Sets the local address of the socket client. The sockets created by this object will bound to the specified address (if not null) before connecting.
This is useful if you want to ensure that the local side of the connection is on a specific port, or on a specific interface.
Since 2.22
- address
a Gio.SocketAddress, or null