0

at first, sorry for my english. :)

In my home-network (with IIS), i have a API at the address: http://pcname:8089. Then i have programmed a MAUI-App (Blazor) for Android and published it to my SAMSUNG S21.

Now i have the following effects:

  • PC: Chrome-Browser (http://pcname:8089/api/Sets) --> OK (received all Sets)
  • PC: VS 2022 Android-Emulator (Pixel 5), my MAUI-App --> OK (received all Sets)
  • S21: Chrome-Browser (http://pcname:8089/api/Sets) --> OK (received all Sets)
  • S21: my MAUI-App --> FAILURE ("NET_HTTP_REQUEST_TIMEDOUT 100")

My code in the MAUI-App:

private async Task LoadFromApi()
{
    HttpClient _client = new HttpClient();
    try
    {
        var response = await _client.GetAsync("http://pcname:8089/api/Sets");

        [..]
    }
    catch(Exception ex)
    {
        [..]
    }
}

Has anyone an idea why my code runs at VS 2022 Emulator but not at my SAMSUNG S21?

Thanks very much!

esehigs
  • 5
  • 1
  • Now i have a part of the solution: when i replace my pc-name within the IP-Address of my PC it works... – esehigs Jan 24 '23 at 07:21

0 Answers0