Add Function GetIpFromDevice