In Mac, whenever we write the command to install homebrew, we get the message of connection refused. In this blog we will solve this problem with one simple step.
Step 1 : Open Wifi Setting
First of all open WiFi setting and click on detail or advanced setting.

Step 2: Select DNS and Add New One
In the second step we are going to add a new DNS Server by click on “+” button. Add new new DNS server 8.8.8.8 (four times 8) and enter.

Step 3 : Save and Run
After save the DNS serve run the following command to Install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Brijpal Sharma is a web developer with a passion for writing tech tutorials. Learn JavaScript and other web development technology.