If you need a specific number that you will always know what it is,..
then,...it is "open season" on anything above port 5000. There is always a
chance you will use on that some other Application uses, that is just the
way it is.
--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Polaris" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi:
>
> I'm writing a server program on WinXP using Win Socket. I need to assign a
> listening port for my server. Just wonder if there is any API I can use to
> find an currently un-used port for the system? Seems the answer is "no",
but
> just like to make sure, or is there any other way to find a port which is
> not in use?
>
> I'm not using MFC's socket class.
>
> Thanks in Advance!
> Polaris
>
>
>
>