add support for retries

I often have multiple servers running and forget which ports they are on. This makes it so I don't need to remember most of the time.