For some reason, no matter what I try, Google Chrome never seems to be able to display http://localhost:3000 (or any other specified port number for that matter) when starting up a server with BrowserSync through Gulp.
Navigating to the same URI in Firefox, shows that it works and that BrowserSync is connected.
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: './'
},
port: 8080
});
});
I'm specifying port 8080
above as an alternative, but even using the default 3000
does not work in Chrome. Firefox seems to be able to work with either.
I've been to: chrome://net-internals/#dns and cleared the host cache, restarted, etc. Nothing works.
In Chrome I simply get the message: ERR_CONNECTION_REFUSED
Any ideas? Thanks.
PS - Also works in Safari.