visual studio 2012 - Work with Web API and Windows Phone -


i developing solution composed of 2 elements: web server, publishes rest services, , mobile client, consumes services. implement rest services have used web api technology.

when start web project in debug, works fine. can use services pointing localhost:63954/api. weird fact: if change "localhost" "127.0.0.1" or lan address of machine, 192.168.xxx.xxx, server not answer anymore!

then, when start windows phone client, runs in virtualized emulator, fails connect web server! if 2 components running in same machine. obviously, in windows phone cannot use "localhost", since localhost of phone phone itself. i'm trying use 192.168.xxx.xxx address address of machine running web service. mobile phone emulator fails reach webservice.

i need run web server in visual studio 2012, since need debug it, , make reachable windows phone emulator, not know how it. can me? idea?

thank much, riccardo.

edit: following link found here (binding iis express ip address) , turning off firewall can run web application outside vs12 , can make reachable other pc in network, , wp emulator. work-around, cannot debug rest service in vs in way , not good...

the windows phone 8 emulator works separate machine on network, it's own ip address , configuration. therefore, emulator able access service need make sure port trying access open inbound connections.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -