On the android side I’ve seen a number of people just view a webpage from the device. That’s probably the easiest way to go on the iPhone side – just use Safari to browse to server hosted elsewhere.
If you’re looking at having an iPhone host the server, that sounds like ugly development work to me.