assigning public ip address retries a couple of times, if it fails.