Troubleshooting
Chrome blocked local network access
Section titled “Chrome blocked local network access”The page at droid.devpier.dev connects to the gateway on your own Mac. Chrome asks for permission the first time. If you denied it, the page cannot connect, and after a few failed attempts it tells you that Chrome blocked access to your Mac.
To allow it again:
- Open Chrome Settings → Privacy and security → Site settings.
- Find
droid.devpier.devand allow local network access. - Reload the page.
If you still cannot connect, use the local fallback page.
Port already in use
Section titled “Port already in use”The gateway listens on port 7300 by default. If another program already uses that port, the gateway cannot start on it. Find the program:
lsof -nP -iTCP:7300 -sTCP:LISTENStop that program, or start the gateway on another port:
android-emu-web --port 7301The gateway puts the new port in the address it opens, so the page connects to the right port.
No emulator found
Section titled “No emulator found”If the page says no running emulator was found:
- Check that an emulator is running:
adb devicesshould listemulator-5554or similar. - Check that it was started with gRPC enabled (
-grpc <port>). The gateway cannot read the screen of an emulator without gRPC.
You can also start a device from the list in the page. See Devices.
The gateway keeps running when no emulator is found, and prints the reason in Terminal.
If the gateway reports that the Android SDK, emulator, platform-tools or the system image is missing, follow the fix it prints. See First run.
“sdkmanager” is missing
Section titled ““sdkmanager” is missing”An SDK installed by Android Studio may not include cmdline-tools, which provides sdkmanager and avdmanager. The gateway does not download it. Download Google’s command line tools from developer.android.com and unpack them so that this path exists:
<your SDK>/cmdline-tools/latest/bin/sdkmanagerThe token has expired
Section titled “The token has expired”The gateway makes a new token each time it starts. If you restart the gateway, a page that still has the old token shows that the token is no longer valid and stops retrying. Open the new link the gateway printed, or run the gateway again.
The page says the gateway or the page is out of date
Section titled “The page says the gateway or the page is out of date”- Gateway out of date: run the upgrade command the page shows. It is the same as the install command.
- Page out of date: force-reload the page with Cmd+Shift+R.
Wrong browser
Section titled “Wrong browser”The page works only in Chrome and Edge. In other browsers it asks you to switch and does not try to connect. See Browser support.
Use the local fallback page
Section titled “Use the local fallback page”The gateway serves the same page at http://127.0.0.1:7300/app/ (or the port you chose). Use it when the public page does not load or local network access was denied.
The screen stops updating
Section titled “The screen stops updating”If the emulator exits or restarts, the page shows that it is disconnected. The gateway keeps running. When the emulator comes back, the page reconnects and the screen returns.