Announcements
No record found.
Hello,
Is there a way to get the user computer name using javascript?
*This post is locked for comments
string ip = Request.UserHostAddress;
string hostname = Request.UserHostName;
or
obj= new ActiveXObject("wscript.network");
alert(obj.ComputerName);
Try using the below code.
Note: You need to enable security settings for it.
var objUserInfo = new ActiveXObject("WScript.network");
var uname = objUserInfo.UserName;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
JS-09031509-0 3
AS-17030037-0 2
Mark Eckert 2