However bear (no put intended) in mind that many computers these days have more than one network interface (Ethernet and wireless), each with their own MAC address. And also when a new network card is installed, it will have a new MAC address attached to it.
It's also (so I hear) possible for the user to change a MAC address.
So if you plan to use this MAC address to prevent people from accessing your software, be prepared to hear from people who have been unjustly prevented.
shital sonavane wrote:Thanks Bear. it's working fine on linux machine. but not on windows machine.
shital sonavane wrote:thanks selva. But, This code is not working on linux machine.
What does that mean "it is not working"? Do you get an error, or do you get output that's different from what you expected? If you get an error, then please tell us exactly what it is - that makes it a lot easier to help you solve the problem.