Skip to content

Use "localhost" instead of "127.0.0.1" for the sidecar host address #1032

@cgillum

Description

@cgillum

Describe the proposal

Currently we use 127.0.0.1 when accessing the Dapr sidecar from the .NET SDK. This is hardcoded here. We should change this to instead be localhost because:

  1. 127.0.0.1 only works with IPv4 whereas localhost works with both IPv4 and IPv6.
  2. Unlike with localhost, using 127.0.0.1 can't resolve to local WSL2 endpoints from the Windows OS, which is a hindrance for local dev/test on Windows.

As an alternative, we could consider making the host address configurable via an environment variable.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions