Android, checking IP status using ping