diff --git a/android/app/src/main/java/com/epfl/dedis/hbt/di/HttpModule.kt b/android/app/src/main/java/com/epfl/dedis/hbt/di/HttpModule.kt index 6762d339..37c933cc 100644 --- a/android/app/src/main/java/com/epfl/dedis/hbt/di/HttpModule.kt +++ b/android/app/src/main/java/com/epfl/dedis/hbt/di/HttpModule.kt @@ -19,7 +19,7 @@ object HttpModule { @BaseURL @Provides @Singleton - fun provideBaseURL() = "http://localhost:3000" + fun provideBaseURL() = "http://10.0.2.2:3000" @Provides @Singleton diff --git a/android/app/src/main/res/xml/network_security_config.xml b/android/app/src/main/res/xml/network_security_config.xml index d4950ca4..62b161da 100644 --- a/android/app/src/main/res/xml/network_security_config.xml +++ b/android/app/src/main/res/xml/network_security_config.xml @@ -1,6 +1,6 @@ - localhost + 10.0.2.2