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

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,090
Members
48,773
Latest member
Kaybee

Latest Threads

Top