Page 1 of 1 1
Topic Options
#159702 - 2006-03-24 10:56 AM Get IP Addresses from "real" Workstation when working in Terminal Session
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Dear all,

Maybe someone has got an idea how to get IP Address information from the "real" workstation when working in a Terminal Session?
Code:

Break On
Dim $NIC, IPAddress
$NIC = 0
If NOT @TSSESSION
While NOT EnumIPInfo($NIC,0,0) = ""
$IPAddress = EnumIPInfo($NIC,0,0)
? $IPAddress
$NIC = $NIC + 1
Loop
Else
? "How do I get the IP Addresses of my real WorkStation?"
EndIf


Thanks for all suggestions

Top
#159703 - 2006-03-24 11:17 AM Re: Get IP Addresses from "real" Workstation when working in Terminal Session
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Have a look in the FAQ forum - there is a topic which deals with getting IP address in both TS and MetaFrame environments.
Top
#159704 - 2006-03-24 02:07 PM Re: Get IP Addresses from "real" Workstation when working in Terminal Session
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
This is not the most elegant solution, but I do have an EXE that gathers this data...

ClientData.exe at http://home.comcast.net/~habullock/Perlutilities.htm
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#159705 - 2006-03-26 02:57 PM Re: Get IP Addresses from "real" Workstation when working in Terminal Session
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Thank you all for your answers and advice.
Due to your suggestions, I found this: Determine RDP Client IP Address
I think I will borrow this part to use in my script.
Code:

for /f "Tokens=2 Delims=[]" %i in ('ping -n 1 %CLIENTNAME%') do echo %i


Top
#159706 - 2006-03-27 10:07 AM Re: Get IP Addresses from "real" Workstation when working in Terminal Session
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
On second thought, wtsmanager.dll is much easier to use. The IP Address can be catched in a variable very easy.
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org