Added GetMachineIP function