wildcard the port in bind

A

Alex Hart

Is there any way to bind with a specific IP address, but wildcard the
port? Something like INADDR_ANY, but for the port?
 
M

Michael Fuhr

Alex Hart said:
Is there any way to bind with a specific IP address, but wildcard the
port? Something like INADDR_ANY, but for the port?

Bind to port 0 (zero) -- most operating systems will pick an ephemeral
port in that case.
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top