Modified method of checking network connectivity