Which ports does the Messages app for OS X use?

If someone has a list of the ports that Messages uses I would appreciate that answer here. Extra votes and thanks for providing a reference.

I have searched the knowledgebase and found this, but it only lists iChat ports. I'm assuming Messages replaces iChat, but do they use the same ports? Barring a direct answer, is there an easy way to figure this out with Netstat or some other utility?


Solution 1:

Using Little Snitch, it reported when Messages is fired up, the following:

Little Snitch's report for Messages application

And for posterity, here is what the 'FaceTime' application reports as connections, since you can call it up from Messsages (camera icon next to user you're messaging's name):

Little Snitch's report for FaceTime application

If anyone finds anything different, please add to this answer. (Making it community wiki).

Solution 2:

Apple's support FAQ states that TCP ports 80, 443, and 5223 are required for iMessage.

Solution 3:

I am pretty sure it uses the ones for imagent (iChat) tcp 443 and 80

If I remove access to the imagent ports 443 and 80. And try to send a iMessage on my Mac via Little Snitch. These are what Little Snitch will ask for.

You can also use Little Snitch to check what FaceTime ports it is using.

Just remember these are for out going.