I'm using GCDAsyncUdpSocket
for my project, I can bind a port this way, (Server part)
[udpSocket bindToPort:45678 error:&error];
But I don't want to give a static port number for this. How to get available free ports for UDP communication ? I am going to publish it as a service using Bonjour ? Am I on the right track ?