How to call API running on localhost from Xamarin app?

surya19876surya19876 Member

Hi,

I am new to Xamarin. I am trying to call my API which is running on localhost, from my android app built using Xamarin.Forms running on an emulator. But my app is unable to make a call to API. What is the solution? I don't want to host my API as it is still under development. I just want to test it.

Answers

  • JohnHJohnH GBMember ✭✭✭✭✭
    From the android app, you don’t reference localhost, you use the PC machine name.
Sign In or Register to comment.