After intalling Xampp on my Mac.
The address is http://192.168.64.2/dashboard
how can I make it to be accessible via localhost or 127.0.0.1 ?
You most likely installed the application that sets up a virtual machine. Revisit the download page and select the application without ‘vm’ at the end
Like Ab Ned said, you’ve probably installed the VM version. I guess that’s a good thing because it might save your from unwanted side-effects. So, if you want to stick with it, just activate the port forwarding:
There’s also a little walkthrough at https://www.apachefriends.org/faq_stackman.html.