The "connection refused" error message typically indicates that the web server you are trying to connect to is not responding. This could be due to a number of reasons, such as the server being down or the port being blocked by a firewall.
Please try connecting to the server using an IP address rather than "localhost".
If this does not resolve the issue, it may be worth checking the firewall settings to make sure the port is not blocked.
Thank you!