Simply learn yourself.
For Safari

How to resolve server connection issue in safari


Many mac users keep getting error saying “Safari can't open the page because it can't find the server” even though they are connected to network.  This instructional page will help you to resolve server connection issue. Whenever you enter website address in browser address bar it search for server on which web page is stored. In order to resolve server connection issue in safari you need to follow the below mentioned steps.

Step 1: If you are facing this issue while surfing internet, it means that you are either not connected to internet or there is some issue from ISP end.

Step 2: Navigate to apple logo apple present on right corner of your screen. Click on system preferences and select network.  Do check if the light of Wi-Fi is green or not.

Step 3: If problem still persists, you have to reset all networks settings by going to Settings>General>Reset>Reset network settings. Restart your machine and try connecting to network.