IPhone HTTP server runs on simulator, but not on iPhone

I want to embed a web server in an application for iPhone to download files from the application’s document directory. I am using iPhone Http Server .

Everything works fine on the iPhone simulator. Even I can get files using http: //: or localhost :.

But on the device I can’t connect. Safari says, "Cannot open the page." Even http: //iphone.local : doest does not work on the same device on which the application is installed.

Please offer.

+1
source share
1 answer

, ? , Mac Safari iOS Simulator. iPhone, , iPhone Safari - .

, , :

cocoaHTTPServer . .

... https://devforums.apple.com/message/706241

+3

Source: https://habr.com/ru/post/1682026/


All Articles