how to get source ip of a telnet session

2003-07-30 Thread msg
Greetings: We need a method of learning the ip address of the client in a telnet session to a Win2k Server SP3 host; the information will be used in the user's ~/.profile to set the DISPLAY variable prior to starting an X session. On Unix one may use 'lsof' (if available) and grep on the shell

Re: how to get source ip of a telnet session

2003-07-30 Thread Harold L Hunt II
Any reason you can't grep the output of tlntadmn to get what you need? By the way, when I run tlntadmn /? I get: C:\Documents and Settings\haroldtlntadmn /? Usage: tlntadmn [computer name] [common_options] start | stop | pause | continue | -s | -k | -m | config config_options

Re: how to get source ip of a telnet session

2003-07-30 Thread msg
Thanks for your reply. Harold L Hunt II wrote: Any reason you can't grep the output of tlntadmn to get what you need? By the way, when I run tlntadmn /? I get: snip When I run tlntadmn /? I get a hung command shell which eventually times out; only running without args seems to work...

Re: how to get source ip of a telnet session

2003-07-30 Thread Harold L Hunt II
Michael, When I run tlntadmn /? I get a hung command shell which eventually times out; only running without args seems to work... You are right, on Windows 2000 I get an error about needing administrative priveleges even though I am logged in as Administrator :) Oh well, if you are going to

Re: how to get source ip of a telnet session

2003-07-30 Thread msg
Harold L Hunt II wrote: Is there any reason you are using telnet server instead of sshd under Cygwin? The X-terminals to be supported don't du ssh; also the intent here is to provide a nearly seamless login requiring only the user to enter uid and passwd to get a session, which in this