Localhost and Windows Phone Emulator - windows-phone-7

I'm runnning the Windows Phone Emulator and want to access the local host of the computer the emulator is running on. "http://localhost" doesn't work as well as using the ip address in the emulator's browser.
So, how can I access the localhost or any other PC available in the local network via the browser of the windows phone emulator?
Thanks
Konrad

Strange - it normally works. Perhaps some network configuration setting on your box is affecting it? Try running with fiddler too.

Related

How to pair a Windows 10 phone with PC for debugging?

I get a code on my phone - but where do I enter it?
I tried connecting by usb, entering the wifi url into my PC's browser ("insecure connection"),...
Edited (May2016):
With later Win10 mobile its now possible to debug a phone running Windows 10 Mobile via WIFI.
Follow the guidance here: https://msdn.microsoft.com/en-us/windows/uwp/debug-test-perf/device-portal-mobile

Weinre not finding a target device - Windows Phone

I am trying to debug my hybrid cordova app using weinre (following this guide)
192.168.1.202 is the IP of my pc.
I have run my weinre server using this
weinre --boundHost 192.168.1.202
then displayed my client interface using this
http://192.168.1.202:8080/client/#anonymous
added the folling line to my html page
<script src="http://192.168.1.202:8080/target/target-script-min.js#anonymous"></script>
and run my app.
My device (wp8.1) is on the same network as my pc. My firewall has been turned off on private network.
Why my target device is not identified (as displayed below)?
PS: I have an express version of Visual Studio so I dont have any another way to debug my hybrid app.
My firewall must be disabled on public network as well. This answers my post and makes it work.

Cannot connect Windows Phone Emulator to Internet when using Wireless adapter on the host

I’m developing Windows Phone app using VS2012 on Dell XPS 15 laptop with Win8 pro.I read a lot of troubleshooting articles here (specially Windows Phone 8 emulator can't connect to the internet) and in other places on the web and have not managed to solve the issue (see the subject). Note my laptop gets successfully IP using DHCP on both adapters (wireless and wired) and no MAC filtering is set on the router. Here is the story:
1) Does not work: When starting WP emulator, it does not get IP from
router (DHCP)
2) Works:
start over (delete virtual switches and machine in Hyper-v)
disable wireless adapter
connect wired adapter to router with cable
start emulator (it creates machine and switches)
gets IP and Internet is accessible
3) Does not work:
start over (delete virtual switches and machine in Hyper-v)
disable wired adapter– windows control panel shows : Bluetooth and
Wireless enabled and wired disable – no others
start emulator (it creates machine and switches)
result:
a) router log shows “DHCP server received REQUEST”
b) on the host I see (ipconfig) virtual switch gets IP (vEthernet
(Intel(R) Centrino(R) Wireless-N 1030 Virtual Switch)) – it selected
as “Windows Phone Emulator External” in virtual machine settings
c) in emulator network tab of “Additional Tools” window I see adaptors
with default IP 169.*
3) Partially works:
delete virtual switches
disable wired adapter– windows control panel shows : Bluetooth and
Wireless enabled and wired disable – no others
create internal switch in hyper-v named “Windows Phone Emulator
Internal Switch” and select it in internal network adapter of virtual
machine
enable sharing in wireless adapter (in control panel)
start emulator as standalone with xde.exe (starting from VS will not
use right snapshot with deployed app) and does not allow it to
connect to network – loading takes much more time and after that, OS
is loading and emulator shows error dialog “Some functionality maybe
disables”
it possible to use emulator with Internet, but device buttons does
not work – use keyboard shortcuts
(http://devatheart.azurewebsites.net/2011/06/04/windows-phone-7-emulator-and-physical-keyboard-shortcuts/)
it cannot be used for debugging – it is good only for showing the app on public ;-)
You have answered your question but this may help.
connect with your wireless network
host the wireless connection using netsh in CMD. an alternative is creating an internal switch sharing your connection with your lan adapter
you can do that with connectify too.
by now, your PC should show you are both connected to a wireless and lan network.
run the emulator from visual studio and you get connected.

Charles Proxy stops WP Emulator internet connection from working

I'm trying to use Charles Proxy to debug traffic from the Windows Phone Emulator, but if I run the emulator after starting Charles Proxy, the emulator cannot connect to the internet at all. The traffic from the emulator is not picked up in the Charles Proxy session window either, but traffic from Chrome on Windows is.
At this stage I just want to get ordinary http working, what do I need to do?
I've not used Charles Proxy.
But you can use Fiddler with the emulator
download from http://www.fiddler2.com/fiddler2/
instructions for wp7 emulator at http://phone7.wordpress.com/2010/10/17/fiddler-and-wp7-emulator-working/
This works well for me

VM cannot access Windows 7 host website

Im developing a website using VS2008 on Windows 7. I am running a VM with IE6 on it and want to test that the site works ok on IE6. On the VM IE6 browser I type http://192.168.0.100/default.aspx since my router gave the windows host that ip address but the browser errors with : Cannot find server or DNS Error
I can ping the host though through a command window.
Could this be a firewall issue on Windows7 and how can I open it up to allow VM browsing of the host website?
The most dangerouse but simplest way to test this theory:
Open the "Network and Sharing Center". If you look at the left panel at the button there should be a "Windows Firewall" under the "See also" section.
On the left again there should now appear a "Turn Windows Firewall on or off"
So you can now quickly test and see if it is in fact your firewall blocking it.
I would not keep the firewall off, and would consider plugging out the network cable before I do this.
Hope it helps
Rihan

Resources