I'm investigating a project at the moment to create an application which will listen to "localhost" within a Windows terminal services environment.
I don't have access to a test environment at present, but I wanted to check this design, especially what localhost/loopback 127.0.0.1 means within a multiuser machine.
If my application binds a TCP socket listening on 127.0.0.1:40000 then what clients would be able to access this? - would it be open to clients within all sessions for all users on the machine/server? - or would it just be each individual user/session?
I'm hoping/guessing the latter. If this is the case, then can each user in each session open their own app running a listener on 127.0.0.1:40000?
Thanks for any help on this design issue.