Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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?

share|improve this question
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 Sep 26 '12 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 Sep 26 '12 at 8:33
What is the output of $ ping -c 4 on the failing Mac? And what is the difference when executing the same command on the Mac where everything is ok? – Pro Backup Sep 26 '12 at 9:23
What is the output of $ telnet 5222. In case the result is like Connected to 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 Sep 26 '12 at 10:20
When it doesn't connect, then there is something in between that blocks your connection to the 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 resolves to and now, which connects fine: Trying Connected to – Pro Backup Sep 26 '12 at 14:30

Your work machine likely blocks port TCP 5222. Or both work network and iPhone mobile operator block port TCP 5222 or 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

share|improve this answer

Re-add the account to Messages app:

  1. Delete the account.
  2. Add a new account. Account type: Jabber, Account name: Leave the server options untouched.
  3. Check if it works.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.