So, when we connect to localhost using android
we use

http://10.0.2.2:%5BportNumber%5D/

it works like a charm on asp.net 4 rc
and i suddenly get http 400 bad request on rtm
i assume its related with iis express

so how to fix…
Open
C:\Users\[WindowsUsername]\Documents\IISExpress\config\applicationhost.config

Search for something like this

add new binding

———————————————

stop site iis express,
run again
you will see 2 sites’s binding point to your web site

Now from android, connect to

http://192.168.0.1:49796/

keep in mind the ip address and port number is depend on your own machine

it works!

About these ads