malformed server address is if you don't match the regex for a proper server address. Connection failed is anything else