Use Bonjour, get a lot more robust