@@ -46,7 +46,7 @@ object NetworkClient {
4646
4747 suspend fun addWhitelistEntry (userId : String ): Result <Unit > {
4848 return try {
49- val url = " http://10.0.2.2 :8081/new_whitelist_entry"
49+ val url = " http://192.168.0.198 :8081/new_whitelist_entry"
5050 val response = client.post(url) {
5151 contentType(ContentType .Application .Json )
5252 setBody(WhitelistEntryRequest (userId))
@@ -64,7 +64,7 @@ object NetworkClient {
6464
6565 suspend fun removeWhitelistEntry (userId : String ): Result <Unit > {
6666 return try {
67- val url = " http://10.0.2.2 :8081/remove_whitelist_entry"
67+ val url = " http://192.168.0.198 :8081/remove_whitelist_entry"
6868 val response = client.post(url) {
6969 contentType(ContentType .Application .Json )
7070 setBody(WhitelistEntryRequest (userId))
@@ -82,7 +82,7 @@ object NetworkClient {
8282
8383 suspend fun createAndRegisterProfile (username : String , password : String ): Result <Pair <String , Set <String >>> {
8484 try {
85- val createProfileUrl = " http://10.0.2.2 :8081/login"
85+ val createProfileUrl = " http://192.168.0.198 :8081/login"
8686 val response: HttpResponse = client.post(createProfileUrl) {
8787 contentType(ContentType .Application .Json )
8888 setBody(CreateProfileRequest (username, password))
@@ -103,7 +103,7 @@ object NetworkClient {
103103
104104 println (" Profile created. ID: $generatedId " )
105105 // --- Step 2: Register user ID with 127.0.0.1:8081 ---
106- val registerUrl = " http://10.0.2.2 :8081/app_save_id"
106+ val registerUrl = " http://192.168.0.198 :8081/app_save_id"
107107 val registerResponse: HttpResponse = client.post(registerUrl) {
108108 contentType(ContentType .Application .Json )
109109 setBody(UpdateUserRequest (generatedId))
0 commit comments