Viewing websites running locally on your Mac in Safari on your Vision Pro

Опубликовано: 08 Февраль 2024
на канале: Code 2020
578
6

Want to test your web content on an Apple Vision Pro? This video shows one easy way to view websites from a server running on your Mac in Safari on your Vision Pro. Unlike other approaches, this should work with almost any server and does not require installing anything

To get started, first make sure that your Mac and Vision Pro are on the same wireless network. Then start your server on your Mac. I'm using https://www.npmjs.com/package/http-se... to server simple, static html pages

You need two pieces of info from your Mac:

The port the server is running on
The local ip address of the Mac

Then in Safari on your Vision Pro, enter the Mac's ip address followed by a colon and the port number. For example: 192.168.1.5:8080

Hit load and you should see the web content being served up by your Mac. This should also work for servers running on Linux and Windows devices too

If it's not working, check that your server is exposed to your local network and that your computer firewall isn't blocking the connection

#visionpro #applevisionpro