Moved IP/Host validation into ServerConnection.