You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Vision Pro Mac Display Mirroring with VPN

Has anyone gotten Mac display mirroring to work while their Mac is connected to a VPN? It seems to break it every time for me. Looking through the display mirroring requirements I’m not sure why this would happen though. Any ideas?


Cisco AnyConnect, LAN access is enabled already.


[Re-Titled by Moderator]

Apple Vision Pro, visionOS 1

Posted on Feb 6, 2024 4:11 AM

Reply
13 replies

Feb 29, 2024 8:43 PM in response to mikefromenglewood

I kept coming across this thread when trying to find work-arounds for connecting to my work Cisco AnyConnect VPN without disconnecting from the Mac Virtual Display on my Apple Vision Pro. Maybe this will help others.

I tried changing the config on the AirPlay ports (mentioned in other replies here), but Cisco AnyConnect (4.9) VPN didn’t allow this. Since the Cisco client is distributed by my company, I cannot upgrade to 5.x.


What worked for me was to create a UTM virtual machine (macOS Sonoma, https://mac.getutm.app/) on my personal MacBook Pro (M3 Max, but should work on all Apple silicon MBPs), and I installed the Cisco client + MS Remote Desktop on the virtual machine. My MacBook Pro maintains local access and shares internet access with the virtual machine. The VM registers the network access as Ethernet, and the VPN manages these ports.


Now when I’m using my Apple Vision Pro and Mac Virtual Display, and I want to use the VPN to access my work machine, I start the Virtual Machine on my MacBook, connect the VPN, and then remote in to my work PC. The Mac Virtual Display remains connected to the Apple Vision Pro.


Virtual Machine installation

  1. Download UTM for Mac (on your main computer)
  2. Downloaded Install macOS Sonoma from Apple App Store (on main computer), but cancel out of the installation process the first chance you get. https://apps.apple.com/us/app/macos-sonoma/id6450717509?mt=12
  3. Install UTM for Mac (on main computer) https://mac.getutm.app/
  4. Create Virtual Machine with Install macOS Sonoma (after it downloads from the App Store on your main computer, it will be in your Applications folder)
  5. skip connecting the virtual machine to any Apple account, and skip everything you possibly can
  6. start VM and install Cisco client from your company
  7. install beta version of MS Remote Desktop (since Apple App Store doesn’t work without being logged in) https://install.appcenter.ms/orgs/rdmacios-k2vy/apps/microsoft-remote-desktop-for-mac/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac


Notes on Configuration of Virtual Machine

I configured the VM with 4gb of RAM and 50 gb of disk space, but I’ll probably reduce these in the future since the VM has one job: connect to my work PC through the VPN. I only lose this RAM from the main machine when the VM is running. Additionally, I uninstalled every app I could, and set Cisco and MS Remote Desktop to run on startup to reduce mouse clicks. I set Cisco to start the VPN when the app starts as well. In the VM macOS User settings, I set it to log in automatically (without a password).


Feb 6, 2024 11:00 AM in response to mikefromenglewood

You'll need to discuss this with the IT team managing the VPN as a starting point, as VPNs can be configured to block local traffic. Your organization's IT team may well then open a case at the Cisco TAC, and ask them to sort this out.


The VPN client will need to allow specific local traffic, and a whole lot of the VPNs I've worked with are set to block all but specified local traffic, or not route that traffic locally, and there's usually ~no way to get an AirPlay connection traveling from Vision Pro through the VPN and all the way back to the Mac as the AirPlay display.


Here are ports used by AirPlay: TCP and UDP ports used by Apple software products - Apple Support


On no evidence, I'd guess that one or more of TCP 80, TCP 443, TCP and UDP 554, TCP 3869, or UDP 5353 is getting blocked—or mis-routed—by the VPN.

Feb 7, 2024 1:15 PM in response to mikefromenglewood

mikefromenglewood wrote:

How would I figure out what IP addresses each device is using to do the AirPlay? Their documentation doesn't say anything about it needing to be on the same WiFi network, even. Does it just use an ad hoc connection?


I’d expect it usualy uses either local staric DNS, or mDNS / Bonjour traffic to identify the target host IP address.


At the command line, use dns-sd to view the mDNS data, or use the command line ping and send a ping to the subnet multicast address (which will usually provoke everything to answer, then figure out what is what), or poke in the arp data, the local Wi-Fi router or AP might have a lookup tool in its UI (Ubiquiti gear is really good at this), or look up the IP network settings in Settings on each device. I sometimes use the Discovery DNS-SD browser app on macOS for this, too.

Feb 13, 2024 1:14 PM in response to mikefromenglewood

Just wanted to follow up on this as I have resolved it!


I started by upgrading my Cisco client to 5.x which allowed me to use Virtual Display with VPN connected, however I soon noticed that Universal Control wasn't working. So my Mac mouse and keyboard were confined to my Mac window which kills a lot of the productivity. So I came across this thread which resolved that issue. So I'm now able to fully use Mac Virtual Display with my VPN connected. Hooray!!

Feb 7, 2024 3:16 PM in response to MrHoffman

I checked those tools and found the only IP reported by the MBP is it’s Ethernet Interface. I didn’t see the Vision Pro anywhere either. Out of curiosity, I took the Vision Pro off the same network and switched it to my phone hotspot, and the Virtual Display remained functional without even a hiccup. With this info, it seems like it is a direct connection between the 2 devices,right? Why would a VPN affect that?

Feb 7, 2024 3:32 PM in response to mikefromenglewood

A VPN fundamentally alters network routing. That is how the VPN works. It alters the network routing, and quite possibly also blocks some of the network traffic. This can involve network traffic to the Mac, or network traffic from the Mac too, as IP connections don’t necessarily use the same network path to get packets to the remote host as they might use to get packets from the remote host. Put differently, getting packets to the target host is half the “fun” involved, while getting the packet responses back from the host is the rest.


Your options here:


… Call the Cisco TAC.


… Learning more about IP networking and VPNs and troubleshooting than you had probably intended.


Vision Pro Mac Display Mirroring with VPN

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.