# Functions
GetIP looks up the ip of host.
GetLocalIP returns the ip address of the local machine.
WithRetry executes f maxRetries times until it returns non-nil error, sleeping for the given delay between retries with exponential backoff until maxDelay is reached.