This had been working before I updated Visual Studio to 17.5.1 today(I was on 17.4 previously). After the update, My Mac will show up in visual studio but after it tries to connect it says host unreachable. I am able to ssh to the Mac using both the hostname and the ip address and run a remote command sucessfully such as ssh jtest@m-1 'ls'. It seems similar to this problem: SSH Connection issue and I tried everything in there- but it still says host unreachable. The version of MAC OS is 13.2.1.
Asked
Active
Viewed 389 times
2
-
Do you have some detailed error logs? You can try the solution in [Connection Troubleshooting for a Xamarin.iOS Build Host](https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/troubleshooting#couldnt-connect-to-macbuildhostlocal-please-try-again) first. – Zack Mar 01 '23 at 02:34
-
Thank you for the tip- I did try everything in that article as well. Two additional things- When the screen to select a MAC shows up- my mac is listed along with an old mac I have not had in years. When I click connect- they both say host unreachable. I disbaled the firewall on the Mac as well- but no change. I dont see anything in the logs- but if there is a secure place I can post them I will. – Jt5 Mar 01 '23 at 14:43
-
What was the version number of XCode before you updated VS, and have you updated XCode since then. – Zack Mar 02 '23 at 09:04
-
The version of XCode is 14.2. I have not updated it since updating VS. – Jt5 Mar 02 '23 at 14:20
-
You can report the problem to VS, during which you can roll back to the previous version for normal use. – Zack Mar 03 '23 at 02:21
-
1I have done as suggested and posted at Microsoft here: https://developercommunity.visualstudio.com/t/After-Visual-Studio-1751-update-Xamari/10301221 I will update here once I hace a solution. – Jt5 Mar 06 '23 at 19:36
-
Ok, waiting for your updates. – Zack Mar 07 '23 at 05:33
1 Answers
4
I received an answer from Microsoft. They indicated that in the connection dialog, it now does a ping on the Mac before attempting the ssh connection. If the ping is unsuccessful- it will say host is unreachable.
I enabled ping on my Mac and then was able to connect. I am not happy with this- as I dont like ping on my machine and it is a horrible way to verify connectivity.
I upgraded to the latest- 17.5.3 and it has the same behavior.
To save the Google\Bing\Whatever search- here is how to enable ping on the Mac(At least on Ventura 13.2.1):
- Click Apple icon in the upper left and select System Settings
- Click Network
- Click Options
- Click the toggle button next to "Enable Stealth mode" - it should be greyed out now
- After this- I had to click the toggle for Firewall off and on
Close Visual Studio and reopen Visual Studio and was able to connect. If it still doesn't work- try rebooting both PC and Mac.

Jt5
- 694
- 5
- 11