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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top