The S2S port should be returned as part of the SRV lookup (ie - it won't always be port 5269) See: https://github.com/buddycloud/buddycloud-tests-framework/blob/master/installation/tests/xmpp_server_srv_lookup.py#L13