Manually Configuring a Device

JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

If for some reason you can not connect to your device over WiFi you can attempt to manually configure your device via the configuration file..

Simply head to your application data folder:

  • Windows: %userprofile%\AppData\Roaming
  • macOS: ~/Users/$USER/.config

In this folder you will find PlayerDeviceList.xml if it does not exist you will need to create one.

Step 1: Get IP Address

Inside of the Xamarin Live Player go to About -> Connection Test -> Start Connection Test

You will need the IP address listed when you configure your device.

Step 2: Get Pairing Code

Inside of the Xamarin Live Player tap "Pair" or "Pair Again", then press "Enter Manually", you will need this Code in the configuration file.

Step 3: Generate Guid

Go to: https://www.guidgenerator.com/online-guid-generator.aspx and generate a new guid and make sure Upper Case is on.

Step 4: Configure Device

Open up the PlayerDeviceList.xml up in an editor such as VS or VS Code. Inside you will need to configure your device manually, the base of the file should be the following:

<DeviceList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Devices>

</Devices>
</DeviceList>

Add iOS Device:

<PlayerDevice>
<SecretCode>ENTER-PAIR-CODE-HERE</SecretCode>
<UniqueIdentifier>ENTER-GUID-HERE</UniqueIdentifier>
<Name>iPhone Player</Name>
<Platform>iOS</Platform>
<AndroidApiLevel>0</AndroidApiLevel>
<DebuggerEndPoint>ENTER-IP-HERE:37847</DebuggerEndPoint>
<HostEndPoint />
<NeedsAppInstall>false</NeedsAppInstall>
<IsSimulator>false</IsSimulator>
<SimulatorIdentifier />
<LastConnectTimeUtc>2018-01-08T20:36:03.9492291Z</LastConnectTimeUtc>
</PlayerDevice>

Add Android Device:

<PlayerDevice>
<SecretCode>ENTER-PAIR-CODE-HERE</SecretCode>
<UniqueIdentifier>ENTER-GUID-HERE</UniqueIdentifier>
<Name>Android Player</Name>
<Platform>Android</Platform>
<AndroidApiLevel>24</AndroidApiLevel>
<DebuggerEndPoint>ENTER-IP-HERE:37847</DebuggerEndPoint>
<HostEndPoint />
<NeedsAppInstall>false</NeedsAppInstall>
<IsSimulator>false</IsSimulator>
<SimulatorIdentifier />
<LastConnectTimeUtc>2018-01-08T20:34:42.2332328Z</LastConnectTimeUtc>
</PlayerDevice>

Close and re-open Visual Studio. Now your device will show up in the list.

Posts

  • oashrafoashraf Member

    Well i am trying out xamarin for the first time, and I discovered the Xamarin live app (which i belive is so cool, if i can get it to start :)) now every time i try to Pair the device with VS2017 it does not work.

    please note
    1- I using both on same home network which does not contain any firewalls
    2- I can ping the phone IP from my laptop
    3- I do the connection test on the app and it works
    4- i used this Manuel thing and it did not work also.

    Please help

  • bolekrobolekro Member

    @oashraf
    I have the same problem - can ping my phone from PC but . Have you had any success solving it?

  • NomanSadiqNomanSadiq USMember

    I resolved by pressing following key combinations shift + Alt + F5 and its works

  • techatetechate Member ✭✭

    I have the wifi connection on my internet. It always gives me trouble to download music from the place store. So I contact [Google Support Number] Google Support for my solution. After reading your post I can easily be configured my internet and I can injoy music and apps

  • techatetechate Member ✭✭
    edited July 2018

    I have the wifi connection on my internet. It always gives me trouble to download music from the place store. So I contact Google Support Number for my solution. After taking this, I can easily be configured on my internet and I can enjoy music and apps

  • @JamesMontemagno

    Now it work.

    Thanks!

Sign In or Register to comment.