How to debug a Safari 6 (iOS) connection bug? - ios

The problem i have is really anoying. Basically if I put "https://a.domainX.com" in Safari on an iPad 3, I get a message that the server did not respond. But if I put the same URL on Opera in the tablet, the page get's displayed correctly.
Also if I put a PROXY between the iPad and the server, the page get's displayed correctly. My current guess is that the Safari browser cannot resolve the domain correctly or there is some problem with the SSL certificate, but only on Safari.
Chrome has the same behavior that Safari, and I presume sinche both browsers are implemented based on WebKIT.
Finally, I did monitor the Safari browser from a Macbook, but there is no information there that could be usefull to debug this problem.
Any tips or suggestions would be appreciated.
PD: English is not my native language, so sorry for any mistakes :)

Finally we where able to debug the problem and we had to use a network sniffer to follow the HTTPS connection flow. The problem was that at some point after the latest iOS upgrade the iPad did not work well with the server side encryption algorithms we had defined, and the HTTPS negotiation didn't go all the way through.
Changing the server side to newer algorithms (and disabling the older ones) did the trick and after that all is working ok.
It was quite difficult to manage this, but we where able to replicate this solution:
http://www.cardinalpeak.com/blog/sniffing-ipad-traffic/
Basically it's about putting a computer between the network and the iPad to sniff the network packets. We didn't use a computer tho, we just connected to the communications switch to see the traffic and redirected the port traffic to the one where we had Wireshark installed (http://www.wireshark.org/), but I guess this is not common solution for everyone.
I hope this helps if anyone has the same or similar problem.

Related

Users Unable To Load Website or Even Leave Server Log When Visiting Specifically from An iPhone/iPad (Any Browser)

I became aware of this issue soon after migrating the site from one hosting account (Media Temple) to another (InMotion).
Ultimately the site renders completely fine on all desktop browsers and all mobile devices other than iPhone/iPads, but any kind of browser on an iPhone or iPad is unable to connect (I've tested Chrome, Safari, Firefox).
This is specific to these actual devices - I can render the website just fine on browser-based mobile device emulators, and simulating Apple products using Chrome Development Tool.
The hosting company wasn't able to offer any insight and mentioned that the IP addresses of iPad/iPhone users don't even hit our weblogs or generate any sort of error he can see and that ultimately the IP address from the Apple device I was using to test isn't present in any logs.
Briefly, I did see an error in Safari Desktop that read:
NSPOSIXErrorDomain:100
At this point I'm planning to migrate the site back to the original host to see if that is a possible solution, but ultimately I'm just at a loss as to why iPad/iPhone devices are affected and not leaving any logs.
The site itself I did not develop, but is Wordpress based and I have tried turning off the plugins, switching themes, and retesting on my mobile device but I wasn't able to fix that error.
The domain can be found here
Would appreciate any insight.

iPhone can not connect to local HTTP server over WiFi

I can not open static HTML pages served from a HTTP server run on my MacBook in iPhone 6s iOS 9.2, neither in 'Safari' nor in 'Chrome' browser when using: http://ipNumberOfMyServer:portNumber
I am able to open the pages on Android phones and I'm also able to open the pages if I turn MacBook's WiFi off and on, but if I change the page and refresh the browser, it again fails to load the page and says that server has stopped responding or that Safari could not connect to the server.
Resetting network settings in iPhone didn't help, nor did turning off Cellular Data in iPhone settings. Any idea what's wrong?
I know this is old already. You can get you computer name from System Preferences -> Sharing
System Preferences->Sharing
in your iPhone safari, type http://JimbasMekbuk.local
if you using different port, say 3000, then add :3000
make sure you turn off firewall
I hope this will help :-)
I had a similar problem, I changed the Wi-Fi network from 5GHz to 2.4GHz and this fixed it.

Phonegap has recently stopped working?

I haven't used it in a while until now but I cannot get it to work anymore even with a new, generated and unchanged, project. It worked perfectly fine before. It's been updated and the mobile app has been updated.. I've tried the desktop and CLI version.
Details:
Using Windows 10. Desktop App or CLI Phonegap.
Using iPhone iOS 9.0.2 mobile Phonegap app.
Using the basic, generated Phonegap Hello World.
What happens:
1. I serve the application.
2. I open the mobile app and enter credentials.
3. It sits on "Downloading" indefinitely
Note: If I open the URL in a browser on the serving machine it WILL open. If I open it on any other machine it will not.. This confuses me because they're on the same WiFi network so that has nothing to do with it. I even tried turning off my firewall in case the port was being blocked or something. I've tried 3000 and 8080.
Has anyone else experienced this?
I've uninstalled, re-reinstalled, used different versions, etc...
EDIT: I've found a solution, kind of.. If I use the --localtunnel flag it will work. I'm not sure why given that they ARE on the same network. Of course this also means that every single time I serve it is a different address which is quite a hassle. But at least I can test now.

Charles for capturing iPhone traffic doesn't work on iOS8

After I have installed Xcode6/iOS Simulator(iOS8), Charles seems can't capture any requests from iOS Simulator.
and Proxy-> Access Control Setting is clean. All Charles settings weren't be modified after upgraded Xcode6
Anybody has the same trouble ?
I get this problem because I use a proxy in my wifi connection to go though the FXK GFW. In this situation, some requests won't go through charles.
You can check this out.

How to debug crashing iOS Safari when Web Inspector and the logs don't indicate anything?

Are there any strategies for troubleshooting a page that crashes iOS Safari when
Appears to be a problem rendering - the page starts to load/render then fail
Only on iPhone. iPad is just fine. Both iPhone 5s and 4s.
Web Inspector in desktop Safari closes immediately after iOS Safari closes
Nothing concrete in the crash logs for Safari
The iOS simulator seems to be fine
If so, what can I do? I can't give any concrete code for the page as I have no idea what is causing it - it would just be a link to the page.
Check out Fiddler, I use it mainly on a PC but there seems to be a Mac build as well. It may help give you a bit more insight into the traffic coming in and out of your machine. Although if the page crashes Safari the issue may be on your machine in which case Fiddler wont help much but its worth a shot to see if some of the web traffic is causing the issue.
http://fiddler.wikidot.com/mono
Can you be a bit more specific as to the page, what it does, why it may cause a crash, did you write it or is it a page out there that you are trying to access?

Resources