You need to check the Internet connection on your Mac/PC then check the settings regarding proxy configuration. Go to Preferences > Advanced > Proxies and make sure that on the next window nothing is checked. Alternatively, re-install Safari using latest version, if possible.