how to get mac address of the system.
my OS is linux fedora.
i have done it already in java but i don't know how to get MAC ADDress with C++.
Printable View
how to get mac address of the system.
my OS is linux fedora.
i have done it already in java but i don't know how to get MAC ADDress with C++.
ioctl is your friend.
Search for SIOCGIFHWADDR, I think that's what the parameter is called that you want.