Live Player does not pair with Visual Studio Community

I have tried paring 2 android devices and an iOS device to Visual Studio but none of them succeed. On the Android devices go through
Pairing with Visual Studio
Counldn't pair with Visual Studio
Retrying pairing with Visual Studio
Counldn't pair with Visual Studio
and continues in a loop.

I have read all the trouble shooting guides but have found very little help on troubleshooting the pairing.
I can confirm that all the devices and laptop are on the same home network connected via wifi (no corporate firewalls here).
I have also switched off firewalls on the laptop and attempted pairing again just in case the firewall was blocking but still no joy.

So where do I go from here, how do I troubleshoot the pairing when there are no visible error messages.

Android Device 1.
Huawei P8 lite
Android 6

Android Device 2
Sony Xperia Tablet
Android 5.1.1

iOS Device
IPhone 5S
iOS

Laptop
Asus X556U
Visual Studio Community 15.5.2
Microsoft .Net Framework 4.7.02556

Answers

  • JohnHairJohnHair GBMember ✭✭✭✭✭

    Can you ping your laptop from the mobile device? And does the network provide internet access?

  • Davee.7519Davee.7519 USMember ✭✭

    No I cannot ping the IPV4 address (192...***) of my laptop from my android device.
    Yes the network does allow internet access.

    I am on my home network, so a wireless router connected to a broadband connection.

  • Davee.7519Davee.7519 USMember ✭✭

    Anybody else had issues getting their mobile device to communicate with their PC running Visual Studio.
    Any help on how to get the machines talking to each other would be great.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    When you go into About -> Connection Test does it pass? If you can't ping your device from your PC that would be an issue for sure. They just need to be on the same network and have access to the internet for the handshake.

  • Davee.7519Davee.7519 USMember ✭✭
    edited December 2017

    All devices and machines are on the same network and have access to the internet.

    After some investigation I found the firewall was not set up to allow pings so with some searching the internet I found instructions on how to allow ping requests through the Windows Defender Firewall and Bullguard Firewall on my PC.

    Now I can ping my PC from my android device but this still does not allow the live player to connect. Still the same issue as before where it keeps retrying.

    Yesterday the connection test was passing. Today I tried it and it says "Server Access: not reachable" and tells me to ensure a port 8090 is open to outbound traffic. Does this mean outbound traffic on my PC not my android device.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    The connection test in the app tests to ensure that the device can reach outbound traffic on 8090. This must also be configured for your PC as well as they both talk for a handshake during pairing.

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    If you have all of your machines setup for static IPs that don't change on WiFi email me and I can assist in manual setup too. [email protected]

  • Davee.7519Davee.7519 USMember ✭✭

    The current configuration is for dynamic IP. I will have to look at static IP and get back to you.

  • DanielTilaDanielTila USMember

    I have the same issue. If i do netcat to see if on my windows machine someone is listening on 8090, I see that's there is no process that listens.

    Live player is enabled but I could not find a log location. Can you point me what logs I need to provide ?

  • DanielTilaDanielTila USMember

    For those which can not pair with the phone, you can find the fully guide that allows you to connect to manually with Visual Studio. I confirm that it works on Android.

    However on my side I have some issues with the buildȘ

    Got device info: Samsung SM-J500FN Player (Android) @ 172.25.1.123:37847
    Synchronizing files...
    Building and running...
    Built with 223 messages.
    (1,1): error: Failed to load assembly from stream: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/microsoft.csharp/4.3.0/ref/netstandard1.0/Microsoft.CSharp.dll".
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at <StartupCode$Continuous-Core-Droid>[email protected] () [0x00012] in <5a566e3f11b47c3aa74503833f6e565a>:0
    at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 --- End of inner exception stack trace --- --- End of inner exception stack trace --- ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/microsoft.csharp/4.3.0/ref/netstandard1.0/Microsoft.CSharp.dll". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 at <StartupCode$Continuous-Core-Droid>[email protected] () [0x00012] in <5a566e3f11b47c3aa74503833f6e565a>:0 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/microsoft.csharp/4.3.0/ref/netstandard1.0/Microsoft.CSharp.dll".
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at <StartupCode$Continuous-Core-Droid>[email protected] () [0x00012] in <5a566e3f11b47c3aa74503833f6e565a>:0
    at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0 <---
    <---

    (1,1): error: Failed to load assembly from stream: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/data/user/0/com.xamarin.live/files/.nuget/packages/system.collections.nongeneric/4.3.0/ref/netstandard1.3/System.Collections.NonGeneric.dll".
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0017d] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.File.OpenRead (System.String path) [0x00000] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at <StartupCode$Continuous-Core-Droid>[email protected] () [0x00012] in <5a566e3f11b47c3aa74503833f6e565a>:0
    at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
    at System.Threading.Tasks.Task.Execute () [0x00010] in <896ad1d315ca4ba7b117efb8dacaedcf>:0

    I can confirm that it works running the full application with it, but not with Live Player support

  • JamesMontemagnoJamesMontemagno USForum Administrator, Xamarin Team, Developer Group Leader Xamurai

    Can you validate which version of the app you have on Android?

    I am about to ship 1.4.155 to Google Player Beta: https://play.google.com/apps/testing/com.xamarin.live

    I think this has the fix for your deploy errors.

    Can you please validate that the getting started samples work for you: https://developer.xamarin.com/getting-started-android/

  • dozkaynakdozkaynak Member

    Lmk if I should post a new thread instead of reviving this one.

    I have an Android device and an Acer laptop, the Connection Test passes on Xamarin Live Player and both devices are able to ping each other (after turning Windows Defender firewall off on the Acer) and yet the pairing still fails. Despite the connection test results, the Debug Logs all claim there is no Wifi connection.

    I manually created the config file so it did show up in the list on my laptop. Shortly thereafter they did appear to pair (and a second list item with the correct name of my device and a unique pairing key/guid showed up). However the pairing appears to drop and re-connect constantly from the mobile app's view, and VS never gets past the "Manage Devices" screen whenever I try to run a preview with XLP. Any suggestions on what I can try?

    I'm at v1.5.176 on the Android and VS 15.6.0 Preview 2.0, and I did setup port forwarding for the required ports like so:

    37847 at 192.168.1.3 (mobile device)
    8090 at 192.168.1.12 (laptop)

    Both are TCP & UDP

Sign In or Register to comment.