Skip to content

Commit 9087224

Browse files
authored
Fix IP address in EmulatorSuite (firebase#283)
The correct IP address of the host computer from an Android emulator is 10.0.2.2. There was a typo of the code. https://developer.android.com/studio/run/emulator-networking#networkaddresses
1 parent 05f35b4 commit 9087224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/app/src/main/java/com/google/example/firestore/kotlin/EmulatorSuite.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class EmulatorSuite {
1111
// 10.0.2.2 is the special IP address to connect to the 'localhost' of
1212
// the host computer from an Android emulator.
1313
val firestore = Firebase.firestore
14-
firestore.useEmulator("10.0.0.2", 8080)
14+
firestore.useEmulator("10.0.2.2", 8080)
1515

1616
firestore.firestoreSettings = firestoreSettings {
1717
isPersistenceEnabled = false

0 commit comments

Comments
 (0)