Monday, March 30, 2015

Connecting to Android Player using VS and Parallels

This is a short guide for how to connect to Android Player in case you're using Visual Studio in Windows through Parallels. I use to do this in a way more complicated manor before I realized that it's just this simple. Looking ahead, In VS 2015, Microsofts gives us an x86/hyper-V Android emulator that looks great. But for now, this works the best.

Start your engines

Fire up Android Player (or any other emulator of your choice that runs Android) in OS X and get the address to the emulator. Click on the settings cog and note the IP Address.

Connect to the emulator

In Windows, open your project in Visual Studio and hit Tools -> Android -> Android Adb Command Prompt. Write adb connect [the IP address] and you should then be connected to your emulator like in the image below.


Run your project

You should now see your device in Visual Studio!


Troubleshooting

Of course, things can go wrong. The issues I've encountered are these.

1) I had to disable my wireless network while connected to the local wired network. Surely this is a configuration issue that I just haven't bothered with yet.

2) The emulator doesn't show up. Restart Visual Studio.

3) You have to reconnect each time your Mac goes to sleep...

4) Firewalls... Make sure port 5555 is open for TCP from Windows to OS X.

32 comments:

  1. Hopefully this helps other people. I also had to do the following:

    Go into the Parallels' settings and forward ports: Actions -> Configure -> USB & Bluetooth -> USB Connection Preferences -> Advanced (tab) -> Change Settings (under Network) ->Add 2 new Port Forwarding rules ->
    #1 Protocol: TCP, Source Port: 5554, Forward to: (you VM), Destination Port: 5554
    #2 Protocol: TCP, Source Port: 5555, Forward to: (you VM), Destination Port: 5555

    Then I also turned on Remote Login for my user account in my Mac's 'Sharing' settings (not sure if that made a differences or not).

    Finally, I found that I had to:
    1# Open up the ADB Terminal/Console on both my Mac and my Windows VM and type in: adb kill-server on both of them (make sure it works, by not returning any text)

    2# Close Visual Studio in Windows VM

    #3 Open Android Player on my Mac

    #4 Connect to the device from the Mac ADB Terminal (adb connect ) (though sometimes this was unnecessary)

    #5 Connect to the device from my Windows VM's ADB console (same command)

    #6 Open up Visual Studio from my Windows VM

    Even after all of that, I never actually saw the Android device's name is the 'Start' button from Visual Studio like you do with a local emulator, it always just said 'Start', but it would still work when I clicked it.

    ReplyDelete
  2. It can also bring the addresses which have been renamed or renumbered up-to-date by accessing the USPS 'locatable address conversion system'. The correct address saves the Postal Services a lot of time, money and effort.
    crack-serials.com/driver-toolkit-key-crack-get-now

    ReplyDelete
  3. Very intersting. Thank you

    العاب طرقع موقع ترفيهي يقدم العديد من العاب الفلاش المجانيه
    العاب عربيات هي العاب سباق تحاول فيها الوصول الي خط النهايه في اسرع وقت للفوز بالكأس
    العاب بقهر هي العاب تابعه لموقع فرايف المعروف وتضم العديد من العاب الفلاش المجانيه
    العاب 250 هي العاب فلاش مجانيه تم تصميمها بواسطه شركه فرايف
    العاب فرايف احدي العاب موقع الالعاب الشهير فرايف وهي العاب مناسبه لجميع الاعمار

    ReplyDelete
  4. Suffice to say, regardless of how sound that you using treating any kind of a platform, ultimately you can discover an example in places need a quantity of tutorial holding; and as well subject to how old you are abilities, using the body-weight of ones own caravan it may be a some what strenuous punch. motor movers
    vBrawl Stars Cheats

    ReplyDelete
  5. Nevertheless, an app can become the topmost priority for a person, if it is engaging enough. ShowBox APK

    ReplyDelete
  6. However, if a person is busy enough, an app can become a top priority for a person. imessage android

    ReplyDelete
  7. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Gba4iOS

    ReplyDelete
  8. If you want to track your Blue dart courier shipment you will have to visit www.bluedart.com

    ReplyDelete
  9. App Yet helps to create apps for website. App Yet helps you toconvert RSS feeds into an android application for Android OS. Mobile app development company

    ReplyDelete
  10. I’d need to consult you here. Which isn’t some thing Which i do! I enjoy reading a post that can make people feel. Also, appreciate your allowing me to comment! Latest Version Of Creehack App

    ReplyDelete
  11. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. sword man monster cheats

    ReplyDelete
    Replies
    1. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! merchant account for pharmacy

      Delete
  12. Good job, thanks for sharing such type of information.
    herpes blitz protocol

    ReplyDelete
  13. Hmm that was weird, my comment got eaten. Anyway I wished to say that it is really nice to know that another person else also described this as I had problems acquiring the similar data elsewhere. This was the first location that advised me the remedy. Many thanks. https://techcaption.com/framaroot-apk-download/

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. A player directs Pacman APK in a certain maze with the goal of eating all of the dots along the maze and moving on to the next level.

    ReplyDelete
  16. Thank You For This Post, was added to my bookmarks. coreapk

    ReplyDelete
  17. Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. https://www.maddenmobilewithcoins.com/

    ReplyDelete
  18. Quickbooks Support Phone Number 1800-291-2485 provides on demand access to priority support for QuickBooks users. We are dedicated to providing accounting, bookkeeping, and technical assistance as well as bug related solutions to our clients who use QuickBooks for their accounting and business management.

    ReplyDelete
  19. Thinking about the huge requests of the present business industry, the Android Technology can support ones organizations using Android Applications, or all the more prominently known as Android Apps.manscaping your junk

    ReplyDelete
  20. What youre saying is completely true. If I could write like you I would start my own blog. App Alternative

    ReplyDelete
  21. I don’t suppose many of websites give this kind of information.whichandroid-phone.info

    ReplyDelete
  22. Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. Fortnite earn free v bucks

    ReplyDelete
  23. The Google Play Store has a lot more apps than the Apple App Store. On top of that, the apps on PlayStore are cheaper. And most of the apps are available to download for free.yelp review notifications

    ReplyDelete
  24. A hair replacement specialist should be knowledgeable enough to help you order the correct human hair wig for the way you intend to wear it here

    ReplyDelete
  25. New web site is looking good. Thanks for the great effort. download gta vice city for android

    ReplyDelete
  26. I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me. Android gaming

    ReplyDelete