PC Review


Reply
Thread Tools Rate Thread

Terminal Services and \etc\services

 
 
Joe G.
Guest
Posts: n/a
 
      21st May 2004
We are working with a daemon-like Win2K/XP application that uses
GetServByName() to get the TCP/IP port to listen on. We would like to
get it to work with windows terminal services such that if multiple
terminal sessions are opened, each could have an instance of this
application running (on the same target machine, of course). In order
to make this possible, each instance would have to listen on a
different port.

Now, since there is a single common services file located in
\WINDOWS\system32\drivers\etc, it makes it difficult to have each
instance resolve into different port numbers (the service name is not
configurable).

Is there some way to trick the application to pick up different port
numbers? For example, if it was possible to change the location of
the services file to a unique directory for each terminal services
user, it would solve the problem. Or, if it was somehow possible to
intercept the GetServByName call... You get the idea.

Any thoughts?

--Joe G.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGF0cmljayBSb3VzZSBbTVZQXQ==?=
Guest
Posts: n/a
 
      21st May 2004
Check here
http://www.workthin.com/tsprogramming.ht

http://msdn.microsoft.com/library/de...pplications.as

Patrick Rous
Microsoft MVP - Terminal Serve
http://www.workthin.co

----- Joe G. wrote: ----

We are working with a daemon-like Win2K/XP application that use
GetServByName() to get the TCP/IP port to listen on. We would like t
get it to work with windows terminal services such that if multipl
terminal sessions are opened, each could have an instance of thi
application running (on the same target machine, of course). In orde
to make this possible, each instance would have to listen on
different port

Now, since there is a single common services file located i
\WINDOWS\system32\drivers\etc, it makes it difficult to have eac
instance resolve into different port numbers (the service name is no
configurable)

Is there some way to trick the application to pick up different por
numbers? For example, if it was possible to change the location o
the services file to a unique directory for each terminal service
user, it would solve the problem. Or, if it was somehow possible t
intercept the GetServByName call... You get the idea

Any thoughts

--Joe G

 
Reply With Quote
 
Joe G.
Guest
Posts: n/a
 
      24th May 2004
BUMP

Anyone?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping my Terminal Services User Profile to my Terminal Services Home Folder neil.harvey@hen.invesco.com Microsoft Windows 2000 Group Policy 0 20th Apr 2007 12:41 PM
Cannot Start Terminal Services Licensing Services =?Utf-8?B?U1FMLCBBY2Nlc3MsIEZyb250UGFnZSwgSUlTLCBP Microsoft Windows 2000 Networking 4 20th Mar 2007 09:59 PM
Terminal Services and Interactive Services ajay.sonawane@gmail.com Microsoft Windows 2000 Terminal Server Clients 1 14th Dec 2005 02:42 PM
Terminal Services Clients Consume Multiple Terminal Services CALs =?Utf-8?B?Y2JsYWNr?= Microsoft Windows 2000 Terminal Server Clients 0 28th Apr 2005 12:24 AM
Terminal Services and \etc\services port number challenge Joe G. Microsoft Windows 2000 Terminal Server Applications 0 25th May 2004 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 PM.