There was an error connecting to the Apple ID Server

From miscellus

There was an error connecting to the Apple ID Server

Recently encountered this error on my iMac and my MacAir laptop. Constantly being nagged for a password for iTunes and for Apple Reminders and Apple Contacts.

Every time I attempted to enter the password I got "There was an error connecting to the Apple ID Server" in red. My password was correct and it failed. Even if I clicked the "forgot" link and received a new password I got the same error.

The problem turned out to be Avast Anti-Virus. I did not bother to get around the problem. I just removed Avast and went with another Anti provider.