Fix endpoints when the service only listens on one IP address

If we let the service bind to all IPs, then the service is obviously
usable from the public and admin networks. Otherwise, the endpoint URLs
should use the unique IP that will be listened on.