Updated socket connect string to use .format