Free the returned object with gobject.object.ObjectWrap.unref.
Socket.getRemoteAddress
gio.socket_address.SocketAddress getRemoteAddress()Try to get the remote address of a connected socket. This is only useful for connection oriented sockets that have been connected.
Returns
a #GSocketAddress or null on error.