Check network connectivity. If it is connected or not