Mike de Klerk
Mike de Klerk

Reputation: 12328

What port does Visual Studio use to deploy an app to Windows 10 IoT

When a device is on a remote location (so not within the local network), how can I deploy an application to the Windows 10 IoT device from within Visual Studio? What ports need to be forwarded in the router. And second, (quiet important actually) how would the authentication work? When Windows Authentication is selected, does it use the current windows user? I would expect to be able to provide credentials that are set from within the web dashboard of Windows 10 IoT.

Upvotes: 0

Views: 643

Answers (1)

Rita Han
Rita Han

Reputation: 9700

The port used to deploy an application by Visual Studio 2015 is 4020 assigned by default. You can set a different port number of you like in Visual Studio Remote Debugging Monitor. Also, you can choose permissions to add or remove users that have permission for remote debugging.

For Windows IoT device you can select your device in IoT Dashboard and right click and select "Open in Device Portal". Then you can enter credential information.

In Debugging of Device Portal, you can start Visual Studio Remote Debugger if "msvsmon.exe" is not in Live process dumps list.

After that, you can deploy your app within Visual Studio using "<your device ip address>:<port>" as remote machine name. You can find "port" number after starting Visual Studio Remote Debugger like this:

enter image description here

You will be request to enter remote debugging PIN after deploying. This PIN you can edit in Home page of Device Portal like this:

enter image description here

More information about credentials processes in Windows Authentication you can reference here.

Upvotes: 1

Related Questions