Bing found these results
Localhost refused to connect: Here’s how to fix it
How to Fix ‘Localhost Refused to Connect’ Error on Windows?
Fix Localhost Err_connection_refused in Windows 10 & 11
Five Ways to Fix the Localhost Refused to Connect Error
6 Proven Methods to Fix “Localhost Refused to Connect” Error
Fixed: Err_Connection_Refused on Windows 11/10 - TenComputer
Cannot access localhost from any browser - Stack Overflow
ERR_CONNECTION_REFUSED Localhost in Windows 10
How to Resolve MAMP’s “Localhost Refused to Connect