Server connection code restored