Free the returned object with gobject.object.ObjectWrap.unref.
Socket.getLocalAddress
gio.socket_address.SocketAddress getLocalAddress()Try to get the local address of a bound socket. This is only useful if the socket has been bound to a local address, either explicitly or implicitly when connecting.
Returns
a #GSocketAddress or null on error.