Why XAMPP listens on wrong IP address?
I think the problem is that you installed the XAMPP VM version that executes a virtual machine on macOS. Check on the XAMPP website and download the normal version. Hope this is the case and that this info helps.