[FIX] If the hostname is empty (False), we will use the localhost