I have a Mac desktop app on the app store. The HTTPSocket connects locally in development, but on the app store it fails. So basically I have a function that detects the users WAN IP address. That works locally, but when you download the app from the app store that field fails and I get an error.
Code I’m using:
// Get the page or give up in 30 seconds
PageData = HTTPSocket1.get( “http://checkip.dyndns.com”,30)
The http response code I receive is: 0
Status code 0 is a response object that generally means no response
I thought it was entitlements but that is only on iOS. I use App Wrapper to wrap my app but this is a bit beyond my understanding of how to get past Apple’s security to allow.
Does anyone have experience with this and can offer direction to overcome this issue?
I believe it was the http not being secure.
I’m going to host my own ip return on a web page so I can better control things. The traffic is low enough to warrant this approach for now.
I’ll also change it to use URLConnection.