473,412 Members | 5,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Is it possible to change my MAC address? If so, how?

8,435 Expert 8TB
Hi all.

A friend wants me to write a VB program for him which will, among other things, change the MAC address on his PC. I thought this was something hard-wired into each network card, but he assures me that I'm living in the past, and it can be overridden on most cards these days. (And no, he's not trying to hack anything, to the best of my knowledge.)

So, can anyone give me any pointers on how I might go about doing so? I'll be working in VB6, but put the question in Techie Talk because it's more of a general question about if/how than about the Vb specifics.

Comments, anyone?

I did do some searching, but the most relevant thing I could find was a thread on TheScripts which pointed to this .Net code on another site (which I won't mention, mostly because I forget what it was) which apparently retrieves the address from each network adapter. It's probably loosely related to what I'm looking for. Posting here just in case it helps narrow things down or generate ideas.

Expand|Select|Wrap|Line Numbers
  1. Use the Management Class object in .NET.
  2.  
  3. ManagementClass oMClass = new ManagementClass ("Win32_NetworkAdapterConfiguration");
  4.  
  5. ManagementObjectCollection colMObj = oMCLass.GetInstances();
  6.  
  7. foreach(ManagementObject objMO in colMObj)
  8. {
  9. Console.WriteLine(objMO["MacAddress"].ToString());
  10. }
  11.  
Jan 15 '07 #1
15 6496
bartonc
6,596 Expert 4TB
Hi all.

A friend wants me to write a VB program for him which will, among other things, change the MAC address on his PC. I thought this was something hard-wired into each network card
I would have said that if it's not "hard wired" it's at least soft wired in a PROM. But I'd (almost) be willing to bet that it's the former.
Jan 15 '07 #2
Killer42
8,435 Expert 8TB
I would have said that if it's not "hard wired" it's at least soft wired in a PROM. But I'd (almost) be willing to bet that it's the former.
You and me both. But he seems fairly certain of himself, and he does deal with this network stuff quite a bit, albeit at a somewhat "higher" level.
Jan 15 '07 #3
Killer42
8,435 Expert 8TB
In case anyone's interested, I'm at home now with a bit more to search. Google has found me quite a bit of information on changing MAC addresses.

Now if I could just find the time to read it...
Jan 15 '07 #4
r035198x
13,262 8TB
In case anyone's interested, I'm at home now with a bit more to search. Google has found me quite a bit of information on changing MAC addresses.

Now if I could just find the time to read it...
Did you manage to change the MAC?
Jan 16 '07 #5
Killer42
8,435 Expert 8TB
Did you manage to change the MAC?
Actually, I ended up moving on to other things. Will let you know when I get back to this.

In fact, I may not need to. From what little I've had a chance to read so far, I think I may be able to get away with just changing the HTTP headers that I send, or something.

Stay tuned...
Jan 16 '07 #6
drhowarddrfine
7,435 Expert 4TB
The MAC address is a permanent part of each board placed there by the manufacturer to uniquely identify each board. It is possible to use different addresses in a network but I don't know anything about it. Here is a Wikipedia article that talks about it.
Jan 16 '07 #7
Killer42
8,435 Expert 8TB
The MAC address is a permanent part of each board placed there by the manufacturer to uniquely identify each board. It is possible to use different addresses in a network but I don't know anything about it. Here is a Wikipedia article that talks about it.
Thanks for that, Doc.

This part of the project is on the back burner for the moment, but I'll bookmark this for when I get back to it.
Jan 16 '07 #8
Motoma
3,237 Expert 2GB
Often, Windows drivers for network cards (wired and wireless) allow you to override your MAC address. This is usually done by going into the Device Manager, and busting through the Advanced tab until you find something like "Network address" or "MAC Address" with a user-defined field.
I know that you can change your MAC address in Linux using ifconfig.
Be aware, there are certain conventions that come with MAC addresses, assigning an address reserved for wired cards when you have a wireless card could clue network admins to your hijinx. Usually, playing with your MAC address is against the User Agreement for networks.
Jan 18 '07 #9
Killer42
8,435 Expert 8TB
Often, Windows drivers for network cards (wired and wireless) allow you to override your MAC address. This is usually done by going into the Device Manager, and busting through the Advanced tab until you find something like "Network address" or "MAC Address" with a user-defined field.
I know that you can change your MAC address in Linux using ifconfig.
Be aware, there are certain conventions that come with MAC addresses, assigning an address reserved for wired cards when you have a wireless card could clue network admins to your hijinx. Usually, playing with your MAC address is against the User Agreement for networks.
Thanks for the info.

It doesn't matter if the MAC gives anything away - it's his own server he'll be hitting. I think he's doing some stress-testing, or something like that.
Jan 18 '07 #10
Motoma
3,237 Expert 2GB
Thanks for the info.

It doesn't matter if the MAC gives anything away - it's his own server he'll be hitting. I think he's doing some stress-testing, or something like that.
Well, tell your friend good luck, and let me know if you need more specifics.
Jan 18 '07 #11
Killer42
8,435 Expert 8TB
Well, tell your friend good luck, and let me know if you need more specifics.
Will do - thanks.
Jan 18 '07 #12
Atli
5,058 Expert 4TB
Hi

To the best of my knowledge. The MAC address is acctually "hard-coded" into the hardware itself, and you can not change it there.

But I know that the software can "mask" the address so what you send from you is infact not the MAC burned into you device.

How to do that, I haven't a clue :)
Jan 19 '07 #13
Killer42
8,435 Expert 8TB
Hi

To the best of my knowledge. The MAC address is acctually "hard-coded" into the hardware itself, and you can not change it there.

But I know that the software can "mask" the address so what you send from you is infact not the MAC burned into you device.

How to do that, I haven't a clue :)
Me neither, yet. But it will be good enough.
Jan 19 '07 #14
horace1
1,510 Expert 1GB
have you tried macshift or similer
http://devices.natetrue.com/macshift/

also see
http://www.tech-faq.com/change-mac-address.shtml
Jan 20 '07 #15
Killer42
8,435 Expert 8TB
have you tried macshift or similer
http://devices.natetrue.com/macshift/
also see
http://www.tech-faq.com/change-mac-address.shtml
Not yet. Thanks for the info.
Jan 21 '07 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: php newbie | last post by:
I am getting error messages when I try to delete from a table using the values in the table itself. The intent is to delete all rows from TableA where col_2 matches any of the col_1 values. ...
12
by: Markus.Elfring | last post by:
I am interested to know if the pointer value for the memory address can be changed by a compiler if the constness of the corresponding type is cast away. inline char* deconstify1(char const * X)...
10
by: pw | last post by:
Hi, Is that possible if the crosstab query is dynamic? Doesn't seem so as I have to specify the control source for the text boxes and the number of columns may change, along with their field...
7
by: nospam | last post by:
Am I trying to do something that is impossible with access 97? I want to write an address book application. I have exported (from a Casio BOSS organiser) all my contact information and it is...
8
by: Daniel | last post by:
Hi, Does anyone know if it is possible to put an aspx page inside of another? OR run an aspx page and capture the output as a string and then write this out to a page.... So for example say...
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
4
by: Lord0 | last post by:
Hi there, Is the following possible with XSLT? Given the following example XML docs: <!-- doc 1--> <user> <username>myUsername</username> <password></password> <phone>12345</phone>
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the text in the url/location bar?...
25
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.