# dial tcp 127.0.0.1:8080: connect: connection refused

- **ID:** `go/http-client-connection-refused`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The client attempted to connect to a server that is not listening on the specified address and port.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.18 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   resp, err := http.Get(url); if err != nil { log.Fatal(err) }
   ```

## Dead Ends

- **** — If the server is down, retries will continue to fail. (80% fail)
- **** — Subsequent operations will fail due to no connection. (90% fail)
