Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot open locally hosted site in XRviewer #85

Closed
JakeJustLearning opened this issue Sep 19, 2021 · 5 comments
Closed

cannot open locally hosted site in XRviewer #85

JakeJustLearning opened this issue Sep 19, 2021 · 5 comments

Comments

@JakeJustLearning
Copy link

I followed the examples exactly as they are listed in the react-XR examples to clone the repo, yarn, and then start. I am using an iphone XS with the latest version of the XR viewer and iOS. however when I try to access the locally hosted instance by going to https://<computer's-ip-address.: with both my computer and iphone on the same network WebXR is not able to access the site. Is there something missing from the instructions for accessing WebXR from a localhost? do I need to do anything specific to be able top access locally hosted instance?

@methot-ilya-3ds
Copy link

I believe this is a problem related to the following issue: google-ar/codelab-webxr#4

I was having the same problem until Is started hosting the site on its own domain using services such as github pages.

@JakeJustLearning
Copy link
Author

Thanks, Is there anyway to create an SSL for localhost? or can you get around that? because the github pages strategy really makes development a pain.

@verekia
Copy link

verekia commented Mar 16, 2022

Yes. You can set up a localhost certificate quite easily. You can Google for some tutorials. I just did it and it works great to try my game on my Quest 2 and on my phone. And with hot reloading (even on those devices) that's really a great and lightweight developer experience.

@camjackson
Copy link

You can also use an HTTPS tunneler like ngrok. This also solves this issue with the WebXR Viewer on iphone.

@Creative-Ataraxia
Copy link

You can also use an HTTPS tunneler like ngrok. This also solves this issue with the WebXR Viewer on iphone.

but ngrok have no free option to use their http agent correct? so unless you are willing to subscribe, that is not a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants