Hey MulongDeng - Yes, no factory reset is needed. --peripheral-mode only sets discoveryHost in /etc/depthai-gate.json. Without it, the value is 127.0.0.1, so DepthAI on other hosts cannot find the camera.
Open a shell on the device (ssh root@<device-ip>, or oakctl adb shell over USB-C) and run:
sed -i 's/"discoveryHost": *"127.0.0.1"/"discoveryHost": "0.0.0.0"/' /etc/depthai-gate.json
systemctl restart depthai_gate
It takes effect immediately, keeps your data, and stays after a reboot. We tested this on an OAK4 (Luxonis OS 1.45.0) set up without --peripheral-mode. Note that this is a manual workaround, not yet in the docs.
If it still does not connect, please share your Luxonis OS and DepthAI versions and the output of cat /etc/depthai-gate.json.
Thanks,
Oskar