Syncrepl: Reliable method to ask a server for its own URL