1

I created one symfony project in my local machine.I installed redis server in my virtual machine .In config.yml i added the following code for redis connection. snc_redis: clients: default: type: predis alias: default dsn: redis://127.0.0.1

Now i am trying to connect my virtual machine with redis server,but still it is connecting to my local machine.

Can anyone explain me how to connect virtual machine with my local project?

3
  • This issue is not a redis issue. It's network/virtualization issue. E.g. with virtualbox, networking for/to/from the vbox is always a nat connection. It's impoosible to access it from host system. You need to use a network-bridge for example. Commented May 5, 2016 at 16:02
  • already have nat connection.In port forwarding i made guest ip as 10.0.0.5 and port 6379 and host ip,port as 127.0.0.1,7003 respectively.Then i added snc_redis: clients: default: type: predis alias: default dsn: redis://127.0.0.1:7003.Now also i am getting error 'connection refused' Commented May 6, 2016 at 7:46
  • see stackoverflow.com/questions/8537254/… Commented May 17, 2017 at 14:18

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.