Search code examples
windows-phone-8hyper-vwindows-10windows-phone-emulator

Windows Phone emulator not starting (couldn`t setup the UDP port)


After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error: "Windows Phone Emulator is unable to connect to the Windows Phone operating system. Couldn`t setup the UDP port"

I tried "reparing" emulators, but nothing changed.

error

Hyper-V manager shows that virtual machine works, and it can be started directly from Hyper-V manager. As i said, in previous windows 10 TP builds it was OK.

emulator works in background


Solution

  • Do you see your "Virtual Switch" information under: Control Panel\Network and Internet\Network Connections? If not, you can try to recreate your "Windows Phone Emulator Internal Switch" again from Hyper-V to see if that resolves your issue. Try these steps below:

    1.) Open Hyper-V

    2.) Shutdown any existing configured Phone emulators.

    3.) Click on "Virtual Switch Manager"

    4.) Click on the "Windows Phone Emulator Internal Switch"

    5.) Remember what the settings are displayed there (because you will delete it and recreate it)

    6.) Delete the existing "Windows Phone Emulator Internal Switch" by clicking "Remove"

    7.) Click "Apply" and "OK"

    8.) Re-create the "Windows Phone Emulator Internal Switch" by clicking the "New virtual network switch" and use the same settings you remembered in Step 5.

    9.) Then try to F5 from Visual Studio - which should configure a new emulator on the right virtual switch.