The most probable and common reason behind the "Safari can't find server" error is not with Safari but with your internet connection. Here are a few ways to fix it.
Reset your wireless router. Turn mobile data off and turn it back on again. Clear Safari cache and data. Restart your iPhone.