Mr_Fulano
asked on
Code for Workstation ID.
Hi, I have an application that is run from a shared drive. Different users connect to it and run independent sessions on their workstations at their desks. I've built in some error reporting into my App and each of those "errors" or incidents gets logged to a text file on the host's HDD.
My log entries specify the Date and Time of the occurrence, and a brief description of the incident. I can also identify who caused the error by logging their user ID. However, I can't tell which workstation caused the error. Is there a way to capture some sort of workstation ID, or the IP address of the workstation so I can put that into my logs as well?
Thanks,
Fulano
My log entries specify the Date and Time of the occurrence, and a brief description of the incident. I can also identify who caused the error by logging their user ID. However, I can't tell which workstation caused the error. Is there a way to capture some sort of workstation ID, or the IP address of the workstation so I can put that into my logs as well?
Thanks,
Fulano
What version of the .NET Framework are you coding against? 1.1? 2.0? 3.0? 3.5?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ptakja, I'm using NET 2.0, Visual Studios 2005.
ASKER
MargaJet24,
Great job! You provided both the host name and the IP address, which was nice. I added points for you, since you helped with both.
Thanks,
Fulano
Great job! You provided both the host name and the IP address, which was nice. I added points for you, since you helped with both.
Thanks,
Fulano
thank you..