Reputation: 455
I am interested if there is a way to create a HTTP server on iPhone and connect to it via iphone hotspot, so it would no need for any other infrastructure (e.g. lan).
I would like to send it some data and it will need to process that data and show some results on iphone screen.
Upvotes: 2
Views: 1927
Reputation: 130072
Look at Cocoa HTTP Server
It's very simple to use. Once the server is started and you know the IP address of your iphone, you can start sending requests.
Upvotes: 3
Reputation: 8423
I am not sure if you can just listen to a port in an iPhone app from the restrictions given (as you are sandboxed and only certain system calls are allowed).
However this might help you
What is the simplest way to setup a server to read data from incoming socket connections?
Upvotes: 0