Connecting Tech Pros Worldwide Forums | Help | Site Map

Retrieving MAC address

Newbie
 
Join Date: Feb 2007
Posts: 8
#1: Feb 26 '07
Im writing a code to retirve the mac address of the client. I hv the javascript dat retrives the mac address.. but it works only id the IE's security is set to low. If it is set to high it throws an error "Automation server cant create object".
Can aneonle help me on how to sign the ActiveX control??? coz i think dats what is creating the problem??/

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Feb 26 '07

re: Retrieving MAC address


Quote:

Originally Posted by navin123

Im writing a code to retirve the mac address of the client. I hv the javascript dat retrives the mac address.. but it works only id the IE's security is set to low. If it is set to high it throws an error "Automation server cant create object".
Can aneonle help me on how to sign the ActiveX control??? coz i think dats what is creating the problem??/

Moved to Javascript forum
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#3: Feb 27 '07

re: Retrieving MAC address


Use a digital signature.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#4: Feb 27 '07

re: Retrieving MAC address


Also see this page for how to sign your control.
Newbie
 
Join Date: Feb 2007
Posts: 8
#5: Feb 27 '07

re: Retrieving MAC address


Quote:

Originally Posted by acoder

Also see this page for how to sign your control.


Hey thanxs buddy..
I'll try the same n let u know the results
Newbie
 
Join Date: May 2007
Posts: 3
#6: May 9 '07

re: Retrieving MAC address


ar WshNetwork = new ActiveXObject("WScript.Network");
var tick = 1

function exchange(){
document.knowbase.userName.value = WshNetwork.UserName;
document.knowbase.submit();
}

i am using the above code..
iam getting a script error "unable to create an ActiveXObject"

though i have changed the security settings same error ...

application working for some of my friends ..

please help.
Newbie
 
Join Date: Nov 2007
Posts: 4
#7: Nov 20 '07

re: Retrieving MAC address


I too need to retrieve the MAC address client-side and programmatically, preferably using JS or Flash and we cannot rely on ActiveX b/c the user may not have it enabled. Also, the solution needs to work cross-platform, cross-OS and we cannot use digital signatures.

I would greatly appreciate any guidance, as I'm a newbie to this area of computers and it's urgent that I solve this problem asap. Thanks very much.
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,247
#8: Nov 20 '07

re: Retrieving MAC address


Quote:

Originally Posted by lgodiva

I too need to retrieve the MAC address client-side and programmatically, preferably using JS or Flash and we cannot rely on ActiveX b/c the user may not have it enabled. Also, the solution needs to work cross-platform, cross-OS and we cannot use digital signatures.

I would greatly appreciate any guidance, as I'm a newbie to this area of computers and it's urgent that I solve this problem asap. Thanks very much.

hi ...

welcome to TSDN ...

i think without ActiveX ... but you may search for a serverside solution ... may be that a google-search with 'mac address php' points you in the right direction?

kind regards
Reply