How to fetch remote session’s information on a terminal server First a confession, i did not plan to start my first posts writing about TCP,Terminal Servers and their likes, but once i begun, i realized there is so much information i gathered that i just must share. In this post i will show how to fetch additional information about the session the current process is running under in a terminal server. It is mainly based upon a previous post “ Using terminal services API to determine if the application...
How to find an available port in C# As i discussed in my post Development considerations taken when installing client application on a terminal server , there will be times you will have to find an available port yourself, without relying on WCF to do that for you. This can be achieved by locating all ports currently used in your machine and returning the first port number that is not being used. The machine in question can hold open ports in different communication protocols and states(learn more...