Categories: php, macos, xampp, localhost

My localhost is refusing to connect on MacOS

1 answer

I am running XAMPP and trying to test my PHP but cant get my localhost to connect. I have tried directing it to different ports and nothing has improved, i have tried kill httpd and stop the apache control and restarted XAMPP, still no joy. Any advice?

All answers to this question, which has the identifier 61020393

The best answer:

You probably installed the virtual machine version of XAMPP (e.g. xampp-osx-7.4.4.0-vm.dmg). It does not run natively on your machine, but inside a box and with its own local network IP address. It cannot be reached via localhost or 127.0.0.1 by default, because they only refer to the host system. The guest system should be seen like another machine in the LAN.

You can find the IP address of the guest system in the General tab of the XAMPP app. In my case it is 192.168.64.2. If I enter that in a browser then I get redirected to the XAMPP dashboard (Welcome to XAMPP for 7.4.4-0).

You may enable port forwarding in the Network tab of the XAMPP app. Select localhost:8080 -> 80 (Over SSH) and click the Enable button. You should then be able to reach the XAMPP dashboard via localhost:8080.

Last questions

how do i remove the switch on my home screen?
how to edit the JS date and time to update atuomatically?
How to utilize data stored in a multidimensional array
Powermockito not mocking URL constructor in URI.toURL() method
Android Bluetooth LE Scanner only scans when phone's Location is turned on in some devices
docker wordpress container can't connect to mysql container
How can I declare a number in java that is more than 64-bits? [duplicate]
Optaplanner solutionClass entityCollectionProperty should never return null error when simple JSON object passed to controller
Anylogic, get the time a pedestrain is in a queue
How do I fix this syntax issue with my .flex file?
Optimizing query in PHP
How to find the highest number of a column and print two columns of that row in R?
Ideas on “Error: Type com.google.firebase.iid.zzav is referenced as an interface from com.google.firebase.messaging.zzd”?
JCIFS SmbFile.exists() and SmbFile.isDirectory() return false when it exists and I can listFiles()
PHP total order
Laravel booking system design
neural net - undefined column selected
How to indicate y axis does not start from 0 in ggplot?
Fragments in backStack
Spinner how to change the data