Starting point reverse shell "Unable to connect"

I’ve got as far as running a webserver and ufw on my Kali VM, and I’m attempting to reverse shell from the compromised SQL server xp_cmdshell. But I’m getting “Unable to connect to the remote server”.

I think I’ve got the IP addresses right (I modified example’s IP address in the shell.ps1 and xp_cmdshell command, using my Kali VM’s tun0 IP address) as per this screenshot…

Retried everything, no changes and it worked. Only thought is that maybe the webserver wasn’t running anymore, as that bash window wasn’t open in screenshot above. Who knows. It works anyway.

Hi there, I’m having the exact same issue, did you just keep retrying it until it connected?

I essentially started the tutorial from the beginning. Couldn’t obviously spot what I did differently.