output.print_error("%s is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at %s:%d."%(service['name'],env['PUBLIC_IP'],service['port']))
else:
else:
raise
output.print_error("%s is running and available over IPv4 but is not accessible over IPv6 at %s port %d."%(service['name'],env['PUBLIC_IPV6'],service['port']))
exceptOSErrorase:
# IPv4 failed. Try the private IP to see if the service is running but not accessible (except DNS because a different service runs on the private IP).
output.print_error("%s is not running (%s; port %d)."%(service['name'],str(e),service['port']))