Maybe add the MAC in your example too here or when you create and publish UDF.

? " Mac Address: " + getipoptions("Macaddress")