?
Solved

Unique identifier on a terminal server (rdp)

Posted on 2016-11-16
4
Medium Priority
?
98 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 27

Expert Comment

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

Accepted Solution

by:
Geert Gruwez earned 2000 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 38

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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