App connects to server