Are you sure python -m rasa_core_sdk.endpoint --actions action
is still running? it needs to run in the background - you can not stop it to execute the other commands (use a second shell for that).
If it is actually running, another issue might be firewall / enterprise proxy settings that prevent you from connecting