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
Solved

Unique identifier on a terminal server (rdp)

Posted on 2016-11-16
4
66 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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