samuel999
asked on
How does Terminal Services Assign IP Addresses to Each Session?
I'm developing a Visual Basic application that I'd like to get running on Terminal Server. The application communicates over TCP/IP and each session/user on Terminal Server needs its own IP Address in order to communicate in and out. I don't know Terminal Services. Can each session get its own IP address?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
samuel999,
You're moving more into the realms of programming here, but yes - that's how most applications work :-)
For example, a web server listens for connections on TCP port 80. The web server would establish connections with huge numbers of clients, but each client connects to the same port on the server.
This mechanism is called "sockets", and I'm sure that there's loads of information around about how you'd implement it.
From a unix point of view, your main process would accept the connection and then fork a sub-process to handle the individual session. I can't really advise on how you'd do it with VB though.
You might want to ask in the VB topic area - post the code that you've got so far so that people can see where you're up to.
Any help?
You're moving more into the realms of programming here, but yes - that's how most applications work :-)
For example, a web server listens for connections on TCP port 80. The web server would establish connections with huge numbers of clients, but each client connects to the same port on the server.
This mechanism is called "sockets", and I'm sure that there's loads of information around about how you'd implement it.
From a unix point of view, your main process would accept the connection and then fork a sub-process to handle the individual session. I can't really advise on how you'd do it with VB though.
You might want to ask in the VB topic area - post the code that you've got so far so that people can see where you're up to.
Any help?
You would have to write your Program to look at the clients session and find there IP Address.
If you wrote the program to just find the IP Address of the computer it would always find the Terminal Server's IP Address because thats the computer your application is running on.
Here is a link with some code to get the clients IP Address, Username etc..
http://www.vbcity.com/forums/faq.asp?fid=9&cat=Terminal+Server#TID18159
If you wrote the program to just find the IP Address of the computer it would always find the Terminal Server's IP Address because thats the computer your application is running on.
Here is a link with some code to get the clients IP Address, Username etc..
http://www.vbcity.com/forums/faq.asp?fid=9&cat=Terminal+Server#TID18159
ASKER