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!