-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Default host 127.0.0.1 instead 0.0.0.0 #561
Comments
Are you on windows? It should be using You shouldn't be denied access to 0.0.0.0 generally — curious more about your OS and other setup? Are you on some sort of locked-down corporate device? |
Nope i'm on OSX siera 10.12 , maybe it's fault of latest macOS update. |
Hmmm... yeah not on Sierra yet. 0.0.0.0 was picked as default as then Gatsby is reachable by non-localhost machines e.g. you're developing on a cloud VM you'd be able to reach your Gatsby instance. |
On Phenomic we listen by default to 0.0.0.0 but open up tabs when starting using localhost, so flexibility for external devices + windows compat. |
I have a clean install of Sierra (Node v7.1.0 installed via Homebrew) as of last week and followed these steps to attempt to recreate the issue.
Following these steps I was able to see the image, but I would be happy to test out your site if it's publicly available @Necmttn. |
I have almost same setup except node -v6.9.1 and step 5. I'm using gatsby's baked loader... I believe it's something related to Siera 10.12 (16A323) Seems like there's a new update to Sierra, i will update it tonight and feedback to you guys. Sorry, I'm not able to open it publicly @michaeljdeeb it's client website. |
I am on Node v6.9.1 and macOS Sierra 10.12.1 and I have no issues with this. @Necmttn have you tried creating a new fresh gatsby project with the |
Even after updating my macOs. the port 0.0.0.0 still "Access Denied". i guess it's related to my mac settings. in case someone else faced this problem.
than in your terminal
I'm closing this issue. 🎤 (drops the mic.) |
Strange... but glad there's an easy work around! |
So, using
When using it locally, no problem, since webpack (I'm guessing? I'm using
This works in localhost, no issue, but breaks when trying to access it from another device on the network because it will point to a file that doesn't exist on the localhost. I think this could be fixed by simply using relative pathing instead of absolute. |
@mboudreau You posted this a few months ago, were you ever able to find a solution for accessing the images over the local network? |
@mawburn nope. I've yet to deploy my project to production or used it much over the network, mostly my localhost. It's still annoying though. |
in develop mode when you style component with CSS modules background image. it's compress with
image webpack loader
and in develop mode it's assign to linkwhen i'm in develop mode images are not loading from 0.0.0.0:8000 i got error;
after poking around a bit i found if i change host with
gatsby develop -H 127.0.0.1
0.0.0.0 to 127.0.0.1 i have no issue.i think it should be default.
The text was updated successfully, but these errors were encountered: