{"id":38,"date":"2012-01-03T22:30:38","date_gmt":"2012-01-03T21:30:38","guid":{"rendered":"http:\/\/eggblog.invertedegg.com\/?p=38"},"modified":"2012-01-03T22:30:38","modified_gmt":"2012-01-03T21:30:38","slug":"fixing-facebook-chat-messaging-on-the-ipad-ios-by-opening-port-8883-on-the-firewall","status":"publish","type":"post","link":"http:\/\/eggblog.invertedegg.com\/?p=38","title":{"rendered":"Fixing Facebook Chat (Messaging) on the iPad (iOS) by Opening port 8883 on the Firewall"},"content":{"rendered":"<p>My darling wife got a new iPad2 for the holidays. \u00c2\u00a0Worked fine while we were out of the house &#8230; but as soon as we got home, the Facebook Chat (messaging) feature stopped working, and hung with a permanent &#8220;connecting&#8221;. \u00c2\u00a0In case you&#8217;re not following, &#8220;chat&#8221; is what shows up in the right-hand column when you use Facebook for the iPad (latest version as of December 2011) in landscape mode (and only shows up in landscape mode). \u00c2\u00a0To restate the problem (and help indexing &lt;g&gt;): \u00c2\u00a0Facebook Chat (aka Facebook Messaging) on the iPad (right-most pane in landscape mode) hung with a &#8220;Connecting &#8230;&#8221; message due to firewall port blocking.<\/p>\n<p>When I connected outside my firewall (directly to my DSL connection) it worked; it didn&#8217;t work from behind my firewall. \u00c2\u00a0So &#8230; clearly a ports issue &#8230; but what ports?<\/p>\n<p>Drove myself crazy trying to figure this out. \u00c2\u00a0Nothing I could find by Googling. \u00c2\u00a0Closest I could come was that Facebook Chat might be using XMPP (TCP ports 5222 and 5223), which makes sense &#8230; but opening those ports did nothing to solve the problem.<\/p>\n<p>Eventually, I turned off the firewall (yikes) and turned on WireShark and ran the app. \u00c2\u00a0Doing so, I saw a very strange pattern &#8212; connections to Facebook servers on port 8883, which is, technically, the &#8220;secure MQTT&#8221; port. \u00c2\u00a0Long story short, I enabled TCP port 8883, and Facebook Chat suddenly started working.<\/p>\n<p>Some additional notes:<\/p>\n<ul>\n<li>I left XMPP (ports 5222 and 5223) enabled &#8230; so you might also need these ports, in addition to 8883.<\/li>\n<li>8883 is <em>strange<\/em>! \u00c2\u00a0The only meaningful reference I could find was that SameTime, that old Lotus Notes IM app, used it. \u00c2\u00a0Maybe someone at Facebook pilfered some old SameTime code?<\/li>\n<\/ul>\n<p>If this helps you out, please leave a comment &#8230; I&#8217;m curious to know who else has encountered this, whether it&#8217;s something unique to me, or I just happened to stumble on it first!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My darling wife got a new iPad2 for the holidays. \u00c2\u00a0Worked fine while we were out of the house &#8230; but as soon as we got home, the Facebook Chat (messaging) feature stopped working, and hung with a permanent &#8220;connecting&#8221;. \u00c2\u00a0In case you&#8217;re not following, &#8220;chat&#8221; is what shows up in the right-hand column when &hellip; <a href=\"http:\/\/eggblog.invertedegg.com\/?p=38\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing Facebook Chat (Messaging) on the iPad (iOS) by Opening port 8883 on the Firewall&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[8],"_links":{"self":[{"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":1,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":39,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions\/39"}],"wp:attachment":[{"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/eggblog.invertedegg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}