This site can't be reached?

i had a problem that when i wanted to download brave browser and go to brave.com to download it showed site can’t be reached and i searched in forum but i can’ found any solution but now i have a solution i am sharing this because i thought it will help a lot of people so follow me

1-go to your pc control pannel or mobiles wifi setting
2-now go to connections and click adapter setting
for mobile go to wifi setting and click on wifi network which you are using and click advanced setting and change DNS of ipv4 to 8.8.8.8 and 8.8.4.4
3-right click on network and and go to properties then go to ipv4 setting and change dns to 8.8.8.8 and 8.8.4.4 the problem will be solved