Connection
Launch the App and use the service address shown on screen. The port starts at 9978 and is chosen from 9978 to 9998, taking the first free port.
127.0.0.1 refers to the device itself. From a computer or another phone, use the App device's LAN IP and port. The URLs and IPs in the examples are illustrative only.
Parameters normally go in the query string or an application/x-www-form-urlencoded form, not a JSON body. Encode Chinese text, URLs and JSON strings with --data-urlencode.
/media, /device and directory listings return JSON with a text/plain content type. Handle other responses according to their actual Content-Type.
/action returning OK only means the request arrived; unknown commands, missing parameters or the absence of a playback service can all leave the action undone. The endpoints have no generic token check, so use them only on trusted LANs.
Endpoint map
Test tools
curl or any HTTP client works. In PowerShell curl is an alias for Invoke-WebRequest; use curl.exe when you need the real behavior.