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.
Related
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...
I've installed Jira application server Version 7.1.4 on windows 10, I can connect to it with VM Ubuntu at my pc and also I can connect to it locally but I can't connect to it in other pc's in our office network.
I Use telnet MyserverIp and Myserver port and everything was ok.
let me know what is your idea.
Update: I changed firewall to turn off but it doesn't matter.
Thanks
I added tomcat8w.exe to "Allow a program or feature through windows firewall" at control panel windows firewall and problem is resolved.
Android emulators cannot connect to internet when using WiFi on host computer. The host is a Macbook pro and the development environment is Visual Studio 2015 running inside a Windows 10 VM using Parallels. When I connect an ethernet cable to the Macbook the Android emulator can connect to the internet and load websites, but when using WiFi on the host it cannot connect. Has anyone else had this issue?
Check network adapters in virtual machine. You probably have some from Oracle Virtual box or other
I put this to work in a nested virtualization environment, but my host is a Windows Server 2016 machine:
Physical machine (WinServer2016) -> VM (WinServer2016) -> VS Emulator for Android
I had to execute the following command in my host:
Set-VMNetworkAdapter -VMName $vmName -MacAddressSpoofing on
I think that if you enable MAC address spoofing on your Macbook pro this will work.
The issue was with Wifi. If the Mac host was connected to the internet via Wifi then the emulators running inside of the Windows VM could not access the internet. Once I switched to LAN connection the emulators were able to connect to the web.
I am trying to connect a Windows Mobile 5.0 device with Visual Studio 2008 using Corecon (tried all processor architecture files available inside wce400 folder) and RDB2008, but it won't connect. Here is the device details page:
Does anyone have any idea what could be wrong here? I suspect a mix-up of Device OS, architecture and SDK. Appreciate any effort or help on this. Thanks.
Remote debug within VS2008 for a Windows Mobile device needs a valid IP connection with the debug ports (5655) opened (if a firewall is active).
First try to start a debug session with a simple .NET Compact Framework application (a C# SmartDevice project) and the device is connected via USB ActiveSync/WindowsMobileDeviceCenter. If that does not work, you are in trouble. Does the device connect to Windows Mobile Device Center? Try Start>Settings>Connections>USBtoPC setting change on the device.
If you can 'debug' using an USB connection but not using WiFi, check subnet and ports and Internet connection setting for Wireless Card on the device. Can you ping the device from the VS2008 PC? Can you ping the VS2008 PC from the device (vxUtils ping)? Is the debug port opened on the device after RDB2008.exe started and installed (see my NetStat for Windows Mobile)?
You may try a network trace on the VS2008 PC to see what happens on port 5655. Or even a network trace on the device (MS powertoys NetAnalyze).
I assume you followed this
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.