Cant access my wordpress.org locally

As you configure the domain name in local WordPress setup, it will not be able to resolve the content from DNS/Domain.

You have 2 ways,

  1. Change the setting from backend. i.e. config file and DB.

OR

  1. As a simple hack, you can create a host entries on your local system to your local web server.
    Simply, add a single line like below to your hosts file,

127.0.0.1 yourdomain.com

Assuming, your local server is in your local PC only.
You can use google to find how you can change your hosts file if you are not aware of the same.
Please, backup the hosts file before any performing any changes.