I have the very same configuration for messages on two different Macs (home and work). At home I have no problem in connecting to the Facebook chat via the jabber protocol, while at work it simply doesn't connect and rises an error saying that it cannot connect to the host chat.facebook.com

I have no proxy problems here: I can chat from the website and even using my iPhone connection via Hotspot it doesn't solve the problem.

I'm sure the settings are ok because they are the same I use on the working computer.

Any help?

  • 1
    Which OS versions are installed at both Macs (home and work)? Does any computer contain firewall software like Little Snitch or Hands Off!? How likely is it that the employer might block access to facebook?
    – Pro Backup
    Commented Sep 26, 2012 at 7:11
  • hi. both run mountain lion, i have no firewall installed and nothing is blocked on the network. again, i eve tried connecting using my iPhone tethering (bypassing any possible block by the employer), but it doesn't connect
    – pistacchio
    Commented Sep 26, 2012 at 8:33
  • 1
    What is the output of $ ping -c 4 chat.facebook.com on the failing Mac? And what is the difference when executing the same command on the Mac where everything is ok?
    – Pro Backup
    Commented Sep 26, 2012 at 9:23
  • 2
    What is the output of $ telnet chat.facebook.com 5222. In case the result is like Connected to chat.facebook.com. Escape character is '^]'. you can quit by pressing <kbd>Ctrl</kbd>+<kbd>]</kbd> and typing quit + <kbd>Enter</kbd> or just wait 10-15 seconds before the connection closes itselves.
    – Pro Backup
    Commented Sep 26, 2012 at 10:20
  • 1
    When it doesn't connect, then there is something in between that blocks your connection to the chat.facebook.com server. And it seems to be on your work computer. Because when using your mobile phone to connect your work computer to the internet, it also blocks doesn't connect using telnet, or does it? BTW Over here in Europe chat.facebook.com resolves to and now, which connects fine: Trying Connected to chat.facebook.com.
    – Pro Backup
    Commented Sep 26, 2012 at 14:30

2 Answers 2


Your work machine likely blocks port TCP 5222. Or both work network and iPhone mobile operator block port TCP 5222 or chat.facebook.com. Please ensure those are opened on any in between firewall.

Even when the network provider does not actively block port 5222 there can still be issues in the network as this discussion of 81 posts in length shows.

To be absolutely sure that the issue is network blocking, you could try to setup a VPN connection on the faulty work computer. For instance to your home computer or use the free VPN demo from usaip.eu.


Re-add the account to Messages app:

  1. Delete the account.
  2. Add a new account. Account type: Jabber, Account name: [email protected]. Leave the server options untouched.
  3. Check if it works.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .