standard out should only be written into one variable for IP/MAC detection

The double variable assignment of standard out breaks the IP/MAC detection