Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get MAC of the first adapter when multiple adapters are available on Windows #39

Closed
jetli opened this issue Aug 1, 2023 · 2 comments
Closed

Comments

@jetli
Copy link

jetli commented Aug 1, 2023

I have an VPN on my Windows machine, the lib returns the mac address of the VPN, not the mac of the default adapter. so do we need to loop in reverse order to get the mac of default adapter? or how can we get the en0 address?

2801690877940_ pic

@capveg-netdebug
Copy link

Btw - check out #42 - that allows you to pick the mac address by IP address. Hopefully it can get approved soon.

@repnop
Copy link
Owner

repnop commented Apr 16, 2024

you should be able to fetch the right adapter using get_mac_address_by_name if you have a consistent name for the network adapter. if/when #42 gets merged, that will be another option as well.

@repnop repnop closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants