- 最後登錄
- 2023-5-8
- 在線時間
- 7 小時
- 註冊時間
- 2011-12-1
- 閱讀權限
- 20
- 精華
- 0
- UID
- 10604124
- 帖子
- 294
- 積分
- 47 點
- 潛水值
- 16940 米
| 各位前輩好:
請問一下我最近學習XAMARIN,最近再用XAMARIN測試連線ASP.NET CORE API,
不知道為什麼如果使用
HttpResponseMessage response = await client.GetAsync("http://192.168.10.xxx/api/Usermanage");
IP的方式會出現錯誤:An error occurred while sending the request.
但如果使用
HttpResponseMessage response = await client.GetAsync("http://hostname/api/Usermanage");
竟然可以正確存取到API。 ... |
|