I have a .net 8 maui app that connects to a webapi (on localhost).
Both apps are running from the same project.
I'm able to connect to the api from the emulator, but cannot connect when running the app from my local device.
I access the api using https://10.0.2.2:"port" - is there something I need to do to give my local device access to make calls to localhost?
Any advice will be great.
Update:
In order to get the working on your local device, first get the ipv4 for your connection, and use this as the base address for your maui application
Secondly, use this same ip address in launchsettings.json "https://ipv4:port" and make sure both are running

