Can't find Xamarin Build Host - visual-studio

I installed Xamarin platform on my mac. But I can't find the Xamarin build host that and connect it to the Visual Studio on my PC. Does anyone know how to get it?

You have to configure you Mac for remote access: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/#Configuration
The new buildhost is using ssh. It is using UDP broadcasts (mDNS, a.k.a. Bonjour) for advertising itself. In some networks/routers/switches UDP broadcasts are blocked. If you still can't find it, try to use the static ip of your mac.

Related

How to deploy a UWP to a Galaxy TabPro S with windows 10 OS?

I'm trying to deploy a UWP app from my Alienware 18, Laptop with Windows 10, version 1803 to a Tablet Galaxy TabPro S with Windows 10 version 1803 as well.
I had activated developer mode on the device target and the USB device discovery option as well.
First I tried connecting a USB Cable from my laptop to the tablet which has a USB-C port.
But My laptop doesn't even find it.
What I want is to find a way to deploy a UWP from my laptop to the tablet, I made some research and I found out that, only HoloLens and Windows Phone 10, are findable using USB Connection.
So what step should I follow to successfully remote debug my app to a windows 10 Tablet.
I would appreciate details because I tried to follow remote deploying but I haven't been able to successfully find the tablet.
The Windows 10 on your tablet, just like on your development machine, supports remotely debugging over the network rather than over USB. Make sure both machines are in developer mode, with the other machine also having Device Discovery turned on as described here. Both should connect to your WiFi as a private network. After that it should be as simple as configuring your project to deploy to the other machine, rather than locally, as described here and here. Don't forget to pair them with a PIN.
If you host a web API on your development machine, configure your firewall as described here.
Use remote debugging over at https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2017
Make sure you follow the instructions, sometimes remote debugging is barred by firewall so check that.
Alternative right click your main project, go to store then click create packages for sideloading and then send the package over at your Samsung device.
So what step should I follow to successfully remote debug my app to a windows 10 Tablet.
To run a UWP app on a remote machine, you must attach to it using the Remote Tools for Visual Studio.
In some scenarios, the remote tools are automatically installed when you deploy to a remote device. For example,
For Windows 10 PCs running Creators Update and later versions, remote tools will be installed automatically.
Then, your remote device and the Visual Studio computer must be connected over a network or connected directly through a USB or Ethernet cable. Debugging over the internet is not supported.
After that, you need to configure the Visual Studio project for remote debugging. In the properties of the project, select the Debug and choose the Remote Machine from the Target Device list. In general, I will input the remote machine's IP address, you could choose Find to choose the device from the Select Remote Debugger Connection dialog box.
Next step, please move to your Tablet, you need to Set up the remote debugger. You must have administrative permissions on the remote computer. Then, open the Start menu and search for Remote Debugger. If you could find it, just start it normally. If you cannot find it, you need to install it Remote Tools manually. See this link to Download and Install the remote tools. Once the Remote Debugger started, you could do some configurations. After that, you could choose Start Debugging on the Debug menu (Keyboard: F5). The project is recompiled, then deployed to and started on the remote device. Please read Run UWP apps on a remote machine in Visual Studio for more information.

ECONNREFUSED - Cannot connect from Android Studio to a Node.js web app on the same PC

I am developing an app in Android Studio and it makes Http calls to a Node.js web application that I am developing in Visual Studio. All these are on the same Windows 10 PC now.
The Node.js web app is running via Visual Studio 2017 and listening at port 1337. I am able to connect to localhost:1337/ from both Chrome and Edge and verify that the Node.js app is running well. However, from the Android app running in an Android emulator, when trying to connect to localhost:1337/ it got:
Exception: failed to connect to localhost/127.0.0.1 (port 1337): connect failed: ECONNREFUSED (Connection refused)
I disabled the Windows Firewall, but the same problem is still there.
If I deploy the Node.js app to a real web site on AWS, the Android app in the emulator is able to connect to that and work as expected. The downside is that I am unable to step through the Node.js app to debug.
So, on its own, the Node.js app is running fine on my PC and browsers can connect to it. On its own, the Android app is running fine on my PC, and able to connect to the Node.js app on the Internet. The problem is the Android app cannot talk to the Node.js app on the same PC.
Does the problem lie in Visual Studio, Windows or Android Studio?
As said before: localhost (127.0.0.1) is your emulator not your local computer.
check this.
How to connect to my http://localhost web server from Android Emulator in Eclipse
so use either the IP address of your computer or 10.0.2.2, which is a special alias to your host loopback interface (i.e., 127.0.0.1 on your development machine)
I think , localhost didn't work from android studio, because from emulator android studio you cannot direct access
you might be use 10.0.2.2 or 10.0.3.2 , may be this can help you
:)
Use your PC IP address. Run ifconfig/ipconfig in terminal/command prompt and look for something like an inet (or whatever looks like an IP address)
Right click on windows icon at extreme bottom left and select windows-shell or cmd and type ipconfig->enter. As it is the same conputer that Node.js is running, use the ipV4 address of ethernet adapter shown, instead of localhost in your app. Hope this helps...

Xamarin Mac Agent Connection issue

I am new to Xamarin, I am having problems connecting from my windows 10 PC to my mac mini. If I disable Windows firewall I can connect but I don't want to leave my firewall turned off. Anyone know what port needs to be opened on the windows machine for the mac agent to communicate with? I tried opening SSH (Port 22), but that didn't help.
Xamarin Firewall Configuration Instructions
Xamarin Mac Agent
To connect Visual Studio to your Mac build host using the Xamarin Mac Agent requires the SSH port to be open. By default this is Port 22.

Xamarin windows to mac build host on different network

I'm trying to connect Xamarin(Visual Studio 2015) from my personal Windows 10 to the Mac of my company. Those 2 computers aren't on the same network.
So my question is:
Can I use a Mac as build host to build my code from a different network?
Thank !
I found an answer since I posted it ;)
Thank all for your help !
How to do? Let say that you have a friend who have a Mac machine and then you need it to compile your Xamarin Project from visual Studio
Download "Hamachi" where you want on the internet. You'll just need to create a account to use it, so do it :) It's free. Do it on both computer of course.
Create a network from Hamachi software from the machine 1
Join the network from Hamachi software from the machine 2
Now, follow the tutorial given by Xamarin and you'll see, the Mac appears !
With the new Mac build system, I don't believe that the machines are required to be on the same network, as long as the Mac is reachable from the Windows machine over port 22.
The Windows computer must be able to reach the Mac via the network.
From the Xamarin documentation: The Windows computer must be able to reach the Mac via the network.
When I'm away from work I use a VPN to achieve this. Check with your system administrator at work to see if you can use a VPN to get your Windows 10 machine connected to the business network (and thus, the Mac).
As long as you can SSH into the Mac from the Windows machine (there are several free apps such a Putty) you should be able to connect to that Mac from Xamarin in Visual Studio and use it as a Mac Build Host.

Connect Xamarin on Mac using Visual Studio

I'm trying connect Xamarin on Mac using Visual Studio. The Mac appears on Xamarin User Agent, but when trying to connect i get this message:
Starting Broker 4.0.1.96 in port 51743...
Couldn't connect to macbook-ricardo.local. Please try again.
Disconnected from Mac macbook-ricardo.local (172.19.2.222)
bash: /Users/ricardo.lima/Library/Caches/Xamarin/XMA/Broker/4.0.1.96/Broker.exe: cannot execute binary file
The Mac is enabled to receive remote connection for ricardo.lima
Thanks in advance
Make sure both are on the same version of Xamarin. If you have any trouble take a look at the Connection Troubleshooting: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/

Resources