Failed to connect to server

After creating an Android Studio project, I tried to modify the system settings. To make the changes take effect, I needed to restart the server. After restarting, I could no longer connect to the server, and only by using the reset function could I reconnect—but then my modified system settings would be lost. How can I resolve this issue?