1

I want to access Redis, and probably other services in the future which are located on my Hyper-V virtual machine (Ubuntu) from my Windows desktop (the host). Only the guest and host should be able to access Redis.

I followed this tutorial and added a manual IP & subnet mask for

2

and the guest.

3

The problem is that I can't connect to Redis from the host (my pc). I tried running ping 192.168.10.100 and it worked but telnet 192.168.10.100 6379 didn't work, so it's not an issue with the IP but something else. I assume the issue relates to my Redis binding or firewall.

4

To confirm: 6379 is the port I use for Redis.

3
  • Look up using Host Only for the Hyper-V Guest as that should do what you want.
    – anon
    Commented Aug 27, 2022 at 0:00
  • @John First result says to use network switches which I've done already. The thing is that it still doesn't work. (I tried Internal switch, without providing a manual IP to host/guest)
    – parpar8090
    Commented Aug 27, 2022 at 1:03
  • Try commenting the existing bind and uncomment the one that binds to 0.0.0.0. Don’t forget to restart redis
    – Sathyajith Bhat
    Commented Aug 27, 2022 at 8:06

1 Answer 1

0

I ran sudo ufw allow 6379 and it solved the problem. Also, make sure the Redis bind allows you to connect (adding 192.168.10.100 to the Redis bind should be fine).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .