# How Can I fix the error "curl: (7) Failed to connect to localhost port 8080: Connection refused" On My Integration Test stage?
### Module
- Harness CI
### Environment
- Infrastructure: Hosted Builds | OS: Linux
### Issue
Unable to access localhost when running a server as a dependency or background step and then trying to access it in next Run step.
Error message - ```curl: (7) Failed to connect to localhost port 8080: Connection refused```
### Resolution
- Binding the Host and Container Ports. A containerized Step will talk to the service using sdp-identifier:container_port or bg-step-id:container_port.
**sdp-identifier: service dependency step identifier**
**bg-step-id: background step identifier**
### Diagnostic Steps
- Check the service dependency step / Background step identifier.
- Change the curl localhost:8080 to curl sdp-identifier:8080 or bg-step-id:8080