Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want know what's the meaning of port 0 in below statement in network programming?

Dim iep As IPEndPoint = New IPEndPoint(IPAddress.Any, 0)

If somebody know plz help me, that's very important.
thanks
Posted

1 solution

From the documentation[^]
"port
Type: System.Int32
The port number associated with the address, or 0 to specify any available port. port is in host order.
"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900