Messages recently stopped working on my iMac. Suddenly it said that it could not connect. More specifically, I could not use Apple's iMessage service. I could use AIM or Google Talk, but iMessage was the service that I wanted to use.
(Note: When I refer to 'Messages' I mean the actual application on my Mac. When I refer to 'iMessage' I mean the service which Apple provides which lets you send instant messages to Macs and iOS devices.)
I tried a few things that I could think of: I checked to make sure that my proxy wasn't blocking anything that could be relevant; I made sure there was nothing in /etc/hosts that could be interfering; I created a new user account on my iMac. Nothing made any difference.
At the same time, ot