Solved

Unique identifier on a terminal server (rdp)

Posted on 2016-11-16
4
45 Views
Last Modified: 2016-11-21
Hi
I have an application running in server-client environments where I have a record for each machine. To search the record that belongs to the Maschine I use an UUID (from the net-adapter). That works fine.

Now I have to run this application in a TerminalServer-environment. In this environment I always get the UUID of the server of course. What posibilities do I have to detect on which machine I launch the application?

Thanks, Peter
0
Comment
Question by:formi
  • 2
4 Comments
 
LVL 26

Expert Comment

by:Sinisa Vuk
ID: 41890953
How about get client IP address? Or even MAC address?
1
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 41891009
what do you need to do with that information
it would only make sense for tracking purposes.

there should be different environment variables: check clientname and sessionname
GetEnvironmentVariable('CLIENTNAME')
GetEnvironmentVariable('SESSIONNAME')

the other thing to be a ware of is writing files on the host machine
it's better to write in user folders for logging, otherwise you will have locking issues when writing to the same file
0
 

Author Comment

by:formi
ID: 41891051
@Sinisa: I think getting IP-address or mac I can only get the adresses of the server because the app runs on it
@Geert: ClientName seems a possible solution. What's about sessionname: isn't it each time I log in different? What I need to do: as written in my first post I have a database with a record for each machine to save local settings. I don't want save them on the local machine (i.e. user-directory). When I have them in the central database I can change the data from every client on any pc.
0
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 500 total points
ID: 41891058
I don't have a setup with terminal services at the moment

why not just use username as a unique indicator for settings ?
does it really matter what machine someone works on ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 185
ddeman not working in activex 3 92
SUM 2 INTEGER ARRAYS INTO 1 10 93
Moving (cutting/pasting) controls in a TTabbedNotebook... 7 27
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now