Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 439
nikita_97_10 Avatar asked Apr 27 '15 18:04

nikita_97_10


2 Answers

The solutions above did not work for me. I found out that the issue was with the Hyper v adapters so I decided to deleted them which caused hyper -v to create them again.

These are the steps

  1. Run cmd as admin and enter the following commands

    set devmgr_show_nonpresent_devices=1

    start devmgmt.msc

  2. This will startup the device manager and show the list of hyper v network adapters

  3. Right click and uninstall all hyper v network adapters

  4. Open Hyper v manager and delete the virtual machines

  5. From Virtual Switch Manager (right side of hyper-v manager), delete all internal switches

  6. Restart the system and run visual studio and launch emulator

See this for more info http://www.gfi.com/blog/how-to-remove-hidden-network-adapters-from-virtual-machines/

like image 127
Magani Felix Avatar answered Nov 02 '22 01:11

Magani Felix


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.

like image 26
Prashant H Phadke - MSFT Avatar answered Nov 01 '22 23:11

Prashant H Phadke - MSFT