Skip to content

Commit 254cc98

Browse files
authored
Fix incorrect emulator host IP address (firebase#304)
1 parent f335bbf commit 254cc98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions/app/src/main/java/devrel/firebase/google/com/functions/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void emulatorSettings() {
2626
// 10.0.2.2 is the special IP address to connect to the 'localhost' of
2727
// the host computer from an Android emulator.
2828
FirebaseFunctions functions = FirebaseFunctions.getInstance();
29-
functions.useEmulator("10.0.2.2.", 5001);
29+
functions.useEmulator("10.0.2.2", 5001);
3030
// [END functions_emulator_connect]
3131
}
3232

functions/app/src/main/java/devrel/firebase/google/com/functions/kotlin/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MainActivity : AppCompatActivity() {
1212
// 10.0.2.2 is the special IP address to connect to the 'localhost' of
1313
// the host computer from an Android emulator.
1414
val functions = Firebase.functions
15-
functions.useEmulator("10.0.2.2.", 5001)
15+
functions.useEmulator("10.0.2.2", 5001)
1616
// [END functions_emulator_connect]
1717
}
1818
}

0 commit comments

Comments
 (0)