Fix accept-connection to return the remote port as third value