Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS devices as web server [closed]

I saw there are several apps on App Store that allow other computers to make a http connection to the iPhone/iPad devices to transfer files. It seemed like a web service is running on the iOS device. Just curious how is it done /what class was used?

Thanks.

like image 962
user523234 Avatar asked Jul 24 '11 02:07

user523234


People also ask

Can you run a webserver on iOS?

If you have iSH linux shell running in iOS then you can easily start and run a simple web server directly from an iPhone or iPad.

Can you run a web server from an iPad?

A new app called ServersMan HD turns your iPad into a file-serving device provided you have enough bandwidth and can afford the charges.

Why does my iPhone say it can't connect to the server?

Still can't connect? Reset your Network Settings. If you're using iOS or iPadOS 15 or later, tap Settings > General > Transfer or Reset [Device] > Reset > Reset Network Settings. If you're using iOS or iPadOS 14 or earlier, tap Settings > General > Reset > Reset Network Settings.


Video Answer


1 Answers

Just display the devices IP address, open a socket for listening in an app running on the iOS device, and implement the http protocol. There are several 3rd party libraries that can do most of the heavy lifting for you:

CocoaHTTPServer or iPhoneHTTPServer3, or SimpleWebSocketServer, or MultithreadedHTTPServer3

like image 152
hotpaw2 Avatar answered Sep 24 '22 05:09

hotpaw2