For example, given a local HTTP web service that exposes a GET operation via the /api/todoitems/ relative URI, an application running in the iOS simulator can consume the operation by sending a GET request to Applications running in the iOS simulator can connect to local HTTP web services via your machines IP address, or via the localhost hostname.Mobile applications running in the iOS simulator or Android emulator can consume ASP.NET Core web services that are running locally, and exposed over HTTP, as follows: This avoids having to deploy the web service to a hosted endpoint, and enables a straightforward debugging experience because both the mobile application and web service are running locally. During the development phase, it's common to deploy a web service locally and consume it from a mobile application running in the iOS simulator or Android emulator.
Many mobile applications consume web services. Connect to local web services from iOS simulators and Android emulators