Code Monkey home page Code Monkey logo

access-iis-express-api-from-android-emulator's Introduction

Access IIS Express APIs from Android emulator

I would like to show you the way I access IISExpress Web APIs from my Android Emulator. I'm using Visual Studio 2015. And I call the Android Emulator from Android Studio.

*Requirement: you must run Visual Studio as Administrator. This post gives a perfect way to do this *

See the result:

From a browser on my PC

Image of browser

From my Android Emulator:

Image of emulator

The test API

Image of emulator

Adding more configuration to App_Start/WebApiConfig to get Json format

Image of emulator

And this is how this work to me

Edit the file "applicationhost.config" in your solution folder

You can find it in the folder [yourSolutionFolder]/.vs/config. Beware the folder .vs is hidden.

Image of emulator

Check your IP Address

And use this IP address to access your API from IIS Express. (See the result above)

Reference

access-iis-express-api-from-android-emulator's People

Contributors

thetukiet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.