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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access development site from external device #536

Open
matthewdixon opened this issue Feb 27, 2024 · 0 comments
Open

Can't access development site from external device #536

matthewdixon opened this issue Feb 27, 2024 · 0 comments

Comments

@matthewdixon
Copy link

This is a follow-up to this issue. Again, thanks so much for all your amazing work on this project so far! 馃槏

Describe the bug

I've not been able to access a development site with an external device connected to the same network. There's some conflicting info re: wordpressHost variable: the variable in vite.config.js includes a port number whereas step 2 in the install instructions doesn't. I've tried both as well as adding --host to the dev script: this exposes the server to my network but when I open the supplied URL, ie. my IP with the port number appended, either on the same device or an external one I get a page simply saying 'please open wordpressHost' which doesn't work on the external device as it has no way of knowing about it.

To Reproduce

  1. Append --host to 'serve' script on package.json:12
  2. Run Vite dev server
  3. Use another device to access the 'Network' address (source IP address with port) provided

Expected behavior

I expect to see the development site on the external device.

Desktop

  • OS: macOS 14.3.1
  • Browser: Chrome 122

Smartphone

  • Device: Google Pixel 8
  • OS: Android 14
  • Browser: Chrome 122

Additional context

Before I go down a proxy rabbit hole it'd be great to know if this is something the team have already got working and if so what mistake I might be making..

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

1 participant