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
If 'localhost' is provided, don't use '0.0.0.0' for livereload #50
Comments
This seems to be a job for the livereload server that you are using? |
I'll close this for now, but please let me know if I got it wrong. |
Not working for me (Windows 7, Chrome 65) I changed line 27 of index.js at connect-livereload to |
@MGRProgramming please file an issue with the project you are using (connect-livereload) and don't hijack closed issues here. |
See: gruntjs/grunt-contrib-watch#493
grunt-contrib-connect options:
grunt-contrib-watch livereload options:
I use Vagrant with VirtualBox and a Ubuntu LTS release.
My page loads correctly at
localhost:8080/index.html
, and contains a script tag (automatically inserted by livereload) that points to0.0.0.0:35729/livereload.js?snipver=1
. The grunt commands are all executed inside the virtual machine.Now on OS X, this works correctly. My browser is able to resolve both URLs and livereload functions as it should.
However, this is not the case on Windows! Windows is unable to resolve
0.0.0.0:35729
, and so livereload is not usable. Changing the URL in the script tag manually tolocalhost:35729/livereload.js?snipver=1
does allow Windows to work.Alas, this would be my request:
If
localhost
is explicitly defined as the host, then force the usage oflocalhost
instead of0.0.0.0
.The text was updated successfully, but these errors were encountered: