If I have a 'compiled' (ie built) version of a program - is there a way
to get a user to enter a serial number before they can install it
properly and can this serial number be linked in some way to the PC ,or
The "True" case is if the user enters 127.0.0.1 or the actual IP address of the host system and not a system over the network. In the case of serial number generation, I guess this would be the only case. So, it would help to wire a constant with the value 127.0.0.1 to the IP address field in the VI.
I have attached a modified version of the previous VI that shows you the MAC address for just the host machine. Also, as pointed out by Conseils, this method will work for Windows OSs only. So, I have also included an OS check.