It seems I was mistaken. I still have the problem. This is very annoying and I wish I knew what caused it. For now I will have to connect by IP address.