I have two dev machines, both with VS2019 16.7.5 and a Mac mini with xcode 12 on it. One machine can pair fine with Mac but the other one continually reports "Couldn't connect to Abc Mac mini. Please try again. An attempt was made to access a socket in a way forbidden by its access permissions". It goes through the motions of connecting to SSH, validating xcode, etc. but then aborts.
The log file is shown below. Any ideas on how I can fix this?
Its not something new with VS 16.7.5, as it also didn't work with 16.7.3. The fact one PC can pair just fine suggests all is OK on the Mac. The machine that can't pair is also running Windows Insider 20221.1000 whereas the other is running standard 2004 build 19041.508.
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on ABC Mac mini (192.168.1.88) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'ABC Mac mini'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Initializing environment... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking available disk space... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Mono installation... Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'which mono64': ExitStatus = 1 Xamarin.Messaging.Ssh.SshCommands|Information|0|A valid Mono installation has been found at '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono64' Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xamarin iOS installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'ABC Mac mini'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on ABC Mac mini (192.168.1.88) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host 'ABC Mac mini' is configured correctly Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on ABC Mac mini (192.168.1.88) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'ABC Mac mini'... Xamarin.Messaging.Ssh.PortForwarder|Warning|0|An error occurred when trying to start the forwarded port from '56613' to '56368' System.Net.Sockets.SocketException (0x80004005): An attempt was made to access a socket in a way forbidden by its access permissions at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Renci.SshNet.ForwardedPortLocal.InternalStart() at Renci.SshNet.ForwardedPortLocal.StartPort() at Renci.SshNet.ForwardedPort.Start() at Xamarin.Messaging.Ssh.PortForwarder.StartForwardedPort(Int32 boundPort, Int32 port, ForwardedPortType type) in C:\A\1\62\s\External\messaging\src\Xamarin.Messaging.Ssh\PortForwarder.cs:line 109