Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Add Android emulator localhost troubleshooting #1129

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/docs/environment/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,9 @@ sentry devservices up
```shell
docker ps
```

---

**Problem:** You use an Android emulator with a DSN pointing to localhost, and the events don't show up in your local Sentry instance.

**Solution:** Change `localhost` to `10.0.2.2`. So, for example, change http://d895df97e1cb4a33b4dff8af3e78da09@localhost:8000/2 to http://d895df97e1cb4a33b4dff8af3e78da09@10.0.2.2:8000/2. This is because localhost or `127.0.0.1` refers to the emulator's own loopback interface, not the loopback interface of the host machine. For more information see https://developer.android.com/studio/run/emulator-networking.
Loading