pugs1501 Posted October 29, 2007 Share Posted October 29, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/75202-how-to-get-remote-computer-name/ Share on other sites More sharing options...
MadTechie Posted October 29, 2007 Share Posted October 29, 2007 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.. Quote Link to comment https://forums.phpfreaks.com/topic/75202-how-to-get-remote-computer-name/#findComment-380334 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.