In my applications, I use open-source cocoahttdserver . It is pretty trivial to configure in your application and connect to a computer using the same network. They have an example with an iPhone sample, which you can pretty much cut and paste for basic functionality.
source share