XAMPP OS 10048 Error

Feb 08, 2016 code

How to fix XAMPP’s OS 10048 Error Only one usage of each socket address (protocol/network address/port) is normally permitted. AH00451: no listening sockets available, shutting down.

So Ive been dealing with this message when running a CLI script that executes the start of xammp. I searched and searched online but couldn’t really find a quick fix. But finally found what works for me.

Im using IPv6 and my localhost IP is ::0

If you open your httd.conf file:

Located at xampp/apache/conf/httd.conf

Search

#Listen 12.34.56.78:80
Listen 80

Change to

#Listen 12.34.56.78:80
Listen [::0]:80

or if you use IPv4

#Listen 12.34.56.78:80
Listen 0.0.0.0:80

Restart Apache and you should be good to go, no more error message.
Also if you want speed up your XAMPP this is what seemed to do it for me!

Search

ServerName localhost:80

Add right under that line

HostnameLookups Off