How to find an available UDP port for binding?

  • Thread starter Thread starter Pawan Singh
  • Start date Start date
P

Pawan Singh

Does anyone know if there is an .Net API which allows me to find an
available UDP port for binding?

Thanks
Pawan
 
Hi,

You can create a IPEndPoint especifing 0 as the port, and a port number will
be assigned.


Cheers,
 
Back
Top