Question

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.

I have been researching and all I could find is server using lan.

Hope someone could help me.

Ante.

Was it helpful?

Solution

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.

OTHER TIPS

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top