I have Windows 2008 R2 server with enabled IP virtualization for Terminal services. I need to know in my program which virtual IP was assigned to session where I run my program.
Now when I get IP address:
String strHostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostByName(strHostName);
IPAddress[] addr = ipEntry.AddressList;
I have only IP of a server not virtual IP assigned to session.
How can I get (using c#) this virtual IP?
Best regards, Piotr