Cannot connect to Redis installed on VirtualBox running Ubuntu from Windows 7

Find your redis.conf file and comment out the line that reads Bind 127.0.0.1. Most out of the box installs have the interface only excepting local connections. Once you comment that out and restart redis server you will be able to connect assuming no other firewall is keeping from getting in

On Ubuntu Linux you can go location /etc/init.d and issue the this command to restart redis server.

sudo ./redis-server restart

or

sudo  /etc/init.d/redis-server restart

Check your /etc/redis/redis.conf, and make sure to change the default:

bind 127.0.0.1

to

bind 0.0.0.0

Then restart your service:

sudo /etc/init.d/redis restart

You can then now check that redis is listening on non-local interface with:

redis-cli -h 192.168.x.x ping

if you get PONG it's ok.