Try setting the network mode of the VM’s network adapter to Bridged instead of NAT so that the VM directly pulls an IP from the router. Then recheck the VM’s IP and use it in the sketch.
Try setting the network mode of the VM’s network adapter to Bridged instead of NAT so that the VM directly pulls an IP from the router. Then recheck the VM’s IP and use it in the sketch.