Could not connect to LiveReload server

I’m using vagrant, virtualbox, guard-livereload, chrome browser, and Windows 7 OS.

I’m using the following command to login or connect to the vagrant server.
$ ssh 127.0.0.1 -p 2222 -i ~/.vagrant.d/insecure_private_key -l vagrant

In order, for my browser to connect to LiveReload server. I need to connect to the vagrant server via SSH:
Sample: $ ssh -L 35729:127.0.0.1:35729 <vagrant-ssh-config>
$ ssh -L 35729:127.0.0.1:35729 127.0.0.1 -p 2222 -i ~/.vagrant.d/insecure_private_key -l vagrant

Whew, You can now connect to the LiveReload server.

By the way, this is my Guardfile

...
guard 'livereload', :host => '127.0.0.1', :port => '35729' do
  watch(%r{.+\.(html)$})
  watch(%r{stylesheets/.+\.(css)})
  watch(%r{javascripts/.+\.(js)})
end
...
This entry was posted in Uncategorized. Bookmark the permalink.