To determine the IP address, it is currently assumed that the ethernet device is called enp5s0. But this is only correct if multipass is configured for lxd. When qemu is used, the interface is called ens3.
The correct way would be to determine the IP address without knowing what the Ethernet device is called in the virtual machine.
To simplify the configuration first, I'll assume multipass is configured for qemu. This is the default setting for multipass after installation in an Ubuntu environment.
To determine the IP address, it is currently assumed that the ethernet device is called enp5s0. But this is only correct if multipass is configured for lxd. When qemu is used, the interface is called ens3.
The correct way would be to determine the IP address without knowing what the Ethernet device is called in the virtual machine.