Finding the Hostname of the Device

Varaprasad kan1
Tera Contributor

HI,

I have a requirement to find the logged in user system hostname. For example the user logged into ServiceNow Instance with his personal system or organization system we want to find the host name of the device from which the user logged into ServiceNow.

 

Thanks & Regards,

Varaprasad Kandula.

4 REPLIES 4

Hitoshi Ozawa
Giga Sage
Giga Sage

On the server, only able to get the ip address from where the user is connection from.

gs.getSession().getClientIP().toString();

 

Thanks Hitoshi, can't we get the system name/hostname?

Not with the standard web browser.

Not sure if IE still allows this but they used to allow ActiveXObject to access user's machine to gather information.

https://stackoverflow.com/questions/922476/how-can-i-read-the-clients-machine-computer-name-from-the...

If all users are internal, it'll be better to use client certification rather than trying to get client's host name.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

check this link

Machine name of logged in User

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader