Remove the port settings from Homestead.yaml , you wonβt need it.
Now, by default, redis in homestead vm listens on its regular port, 6379.
You can ssh into your vm and check it out:
vagrant@homestead : ~ $ ps -aux | grep redis
redis 996 0.1 0.4 35 232 8752? Ssl 01:53 0:00 / usr / bin / redis-server *: 6379
To connect to the vm redis instance from your local computer, you need to use the IP address provided in your Homestead.yaml . The default is 192.168.10.10 :
redis-cli -h 192.168.10.10
If you have a domain name configured in local /etc/hosts for your application, you can use it instead:
redis-cli -h homestead.app
source share