The problem is, the WP script should call the URL on the same domain to run the cron job planner at https://youdomain.com/wp-cron.php
When the website is running on external hosting, it works fine usually.
However, for local installations (mostly dev environments), there is a problem. Because you have no actual domain, you simulate it via the "hosts" file.
This file is usually located in
%WINDIR%/system32/drivers/etc/hosts on Windows or
/etc/hosts on Linux-based OS.
While OS and browser can read this file and execute fake domains from there, Apache and PHP often have a problem with it. For example, this file "hosts" can be marked as "read-only by admin" or something else so Apache and PHP can not read it.
So, basically, you have to enable read access to the hosts file for "all users" and it should help.
If not - please contact me again, we can have a short TeamViewer session so I can check what exactly goes wrong on your installation.