Jump to content

How to get remote computer name


pugs1501

Recommended Posts

I am wondering how I could get the computer name/hostname of the client into a variable so  I can then put the variable into a database and do some reporting off of it. We are on DHCP and to run a report at the end of the day sometimes the DHCP addresses changes by then and we go and look at the wrong computer. Any help you can give me would be wonderful. We are on a private address range of IP's.

 

 

Link to comment
https://forums.phpfreaks.com/topic/75202-how-to-get-remote-computer-name/
Share on other sites

erm..

change to static ip, erm..

 

maybe use JS to write to a form..

var ax = new ActiveXObject("WScript.Network");
document.write(ax.UserName + '<br />');
document.write(ax.ComputerName + '<br />');

 

of course your need to change the security setting on the client machines

 

or maybe a login system..

 

depends what your using it for..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.