Computing.Net > Forums > Programming > how do u get a machine's mac addres

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how do u get a machine's mac addres

Reply to Message Icon

Name: clyde
Date: July 18, 2003 at 03:52:48 Pacific
OS: Windows 2000
CPU/Ram: 1000Mhz/128MB
Comment:

I'm looking for a way to get a computer's mac address programmatically. Is there a VB function that returns it? Please help.



Sponsored Link
Ads by Google

Response Number 1
Name: Rolos
Date: July 18, 2003 at 04:31:01 Pacific
Reply:

You can get a machine's mac address by doing a system call to netstat along with the computer's IP. Doing it in MS-DOS, the correct syntax would be:

netstat -a IP#

I know how to do this in C++, not in VB. If you can do system calls in VB then it shouldn't be a problem for you. What you are planning on doing with this information anyway?

- Rolos


0

Response Number 2
Name: Rolos
Date: July 18, 2003 at 04:37:20 Pacific
Reply:

P.S. The guys up in the networking forum are very knowledgeable of this kind of stuff, even doing it programatically. Try posting your topic there as well. It couldn't hurt to try, you'd probably get better options and results.

Regards,

Rolos


0

Response Number 3
Name: anonproxy
Date: July 18, 2003 at 22:45:59 Pacific
Reply:

Its important to realize that a MAC address is a completely untrustworthy value. It is commonly changed. There is no way to validate its authenticity through conventional mechanisms (aside from blocking the obvious straight zeros or ones, for example.)

Try this:
http://www.justlan.com/forum/viewtopic.php?p=1820


0

Response Number 4
Name: CyberSlug
Date: July 19, 2003 at 03:37:55 Pacific

Response Number 5
Name: Infinite Recursion
Date: July 19, 2003 at 15:15:39 Pacific
Reply:

On a side note, you can shell out to DOS with a VB Shell command... pipe the ipconfig /all results or netstat results into a delimited text file... then parse that file for the MAC value.

Infinite Recursion


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: how do u get a machine's mac addres

How do u build a graph???? www.computing.net/answers/programming/how-do-u-build-a-graph/18370.html

how do u convert an avi file to a mpeg? www.computing.net/answers/programming/how-do-u-convert-an-avi-file-to-a-mpeg/2004.html

how do I get the program to go to t www.computing.net/answers/programming/how-do-i-get-the-program-to-go-to-t/6423.html