Hello,
I've been writing (several) self-hosted WCFs (hosted as a windows service).
Most of these are using TCP binding and function quite well.
My question concerns ports. In each app.config / web.config file, we're required to place a tag which usually looks something like this:
<baseAddress="net.tcp://ServerName:8080">
So, I ask, how does one determine an appropriate port to use? I know not to use any port numbers below 1025, but what about the others?
Should I also avoid any ports listed on this resource?
Or does it really matter? Could I just randomly assign port numbers if they're greater than 1025?
Any help or light on this subject would be greatly appreciated.
Thanks,
Jason
I've been writing (several) self-hosted WCFs (hosted as a windows service).
Most of these are using TCP binding and function quite well.
My question concerns ports. In each app.config / web.config file, we're required to place a tag which usually looks something like this:
<baseAddress="net.tcp://ServerName:8080">
So, I ask, how does one determine an appropriate port to use? I know not to use any port numbers below 1025, but what about the others?
Should I also avoid any ports listed on this resource?
Or does it really matter? Could I just randomly assign port numbers if they're greater than 1025?
Any help or light on this subject would be greatly appreciated.
Thanks,
Jason