I was working on a website which is a secure site SSL installed accessed using https instead of http. Everything was working fine except the connectivity to Jetpack. I was unable to use the iOS WordPress Application, but other applications like MarsEdit, Windows Live Writer was working fine.
Add the following code to the
<br /> /**<br /> * Set port to 443<br /> */<br /> $_SERVER['SERVER_PORT'] = 443;<br />
Having trouble with Jetpack or one of its components? Here are a few key steps that can help you solve the problem.
Source: Troubleshooting Tips