bevry / getmac

Get the mac address of the current machine you are on via Node.js
Other
358 stars 54 forks source link

When using the getMAC method, I accidentally got the address of the virtual NIC #331

Open RayJenson opened 2 months ago

RayJenson commented 2 months ago

hellow😊 I have VMware Workstation Pro installed on my computer, So my computer has several virtual network cards.Why do I get the MAC address of the virtual NIC when I use the getMAC method?

RayJenson commented 2 months ago

I think you should first determine whether the MAC address is the address of a virtual NIC after obtaining it, and if so, you should look for the address of another NIC instead