Server IP Discovery? Network Question

Hi guys/girls,

I have a project where I often have to connect from an iPad to a computer via a wifi network. I can store the ip of the machine as a variable but I have to change machines quite often and sometimes I run the server on another machine.

I remember that in one of the tutorials, there was a way for the client to find a server if avaiable on the same network. But I cant seem to find it again.

If you know it of the top of your head, please answer. I will keep looking.

Thankx.

The only way to discover servers on the same LAN, without a master server, is normally UDP broadcast and have the server side answer