SuperUberDuper
SuperUberDuper

Reputation: 9623

How to get livereload.js working on localhost, error -> ERR_CONNECTION_REFUSED

I'm trying to get my page to refresh automatically with grunt watch and when to do this on index.html:

<script src="//localhost:35729/livereload.js"></script>

I am getting the error http://localhost:35729/livereload.js net::ERR_CONNECTION_REFUSED

how can I fix this?

Upvotes: 3

Views: 9629

Answers (1)

Abdo Hassan
Abdo Hassan

Reputation: 61

try this out :

don't use this :

<script src="//localhost:35729/livereload.js"></script>

use this :

 <script src="http://localhost:35729/livereload.js"></script>

i hope it will work

Upvotes: 5

Related Questions