-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
LiveReload not loading #134
Comments
If I load http://10.0.1.5:8080/ then livereload uses http://10.0.1.5:35729/livereload.js?snipver=1. But when using localhost it gives the bad URL. This is still the case when I use |
Budo uses the internal-ip module to determine your IP. Can you test that CLI to see if it produces the same problem? Just so I understand the problem correctly:
|
Correction, when I use When I set the host explicitly to |
This is no longer happening this morning to me. I'm not sure if there is some strange network configuration things going on. I'm on the same standard home-office network with Comcast. Still, I see that when setting |
The reason the injected script uses a specific IP is so that mobile LiveReload can work out of the box. Other suggestions? |
I have no suggestions. I'm not sure how mobile testing works nor why I was getting that strange IP address. |
Ok, there may be some strangeness in the way that budo tries to use default host address that I can clean up and lead to overall less confusion. I will leave this open while I brew on it... 😄 |
Thank you. And good luck! :) |
Update: it may have been the IP of my VPN address. I'm finding this VPN IP is the IP that budo uses often by default. I'm setting to localhost because I can't have it keep changing (I use localStorage etc. which are keyed to domain) so I'll just go without live reload for now. Could the server bind to all available IPs? I noticed that Output of
|
I cloned |
Cool! Right now the reasons I'm using
But maybe we can bind the server to |
That would be perfect. Use That sounds like it would work. Incoming PR. |
I can confirm a similar bug report: accessing on Now, similar to the description above, accessing on Cheers! (And keep up the great work overall) |
For what it's worth, the LiveReload refactor branch mentioned here should not have this issue. Feel free to give it a whirl and see if that version works out OK for you. |
I actually wonder if it has to do with simple browser caching of the |
I've definitely noticed a couple quirks in situations like airport wifi and mobile. The new LiveReload backend will probably resolve all that. |
Having this issue as well- livereload won't work when connected to a VPN |
Thanks for testing @abradley2 – can you try the new backend and let me know?
|
Thanks! Just tried that, I got the following warning:
|
That's ok, the error will go away when it's published on npm properly. What version of node/npm are you on, by the way? Otherwise, is that new version of budo working with your VPN? |
yeahp, it's working :) |
Ok, should be all good in budo@10.x now that it pulls in the new LiveReload stuff. Thanks! |
I am loading my page from localhost. The livereload script injected into
index.html
has http://10.201.45.95:35729/livereload.js?snipver=1 which is not my computer's IP (it is 10.0.1.5). But since I don't have port-forwarding on my router to my laptop it can't load the reload script. When I hit the script at http://localhost:35729/livereload.js?snipver=1 or http://10.0.1.5:35729/livereload.js?snipver=1 it loads just fine.Any ideas where that IP is coming from and what do do about fixing it?
The text was updated successfully, but these errors were encountered: