Skip to content

Kestrel ListenAnyIP(8080) ignores ASPNETCORE_URLS (cannot bind loopback/custom port) #158

Description

@tikicoder

Bug

Program.cs always calls options.ListenAnyIP(8080), which overrides ASPNETCORE_URLS.

Container Apps / Docker already set ASPNETCORE_URLS=http://+:8080, but that value is ignored. Local orchestrators (e.g. spawning multiple Toolkit instances behind Bastion SOCKS) cannot bind http://127.0.0.1:<port> without changing code.

Expected

  • When ASPNETCORE_URLS is unset: keep default 0.0.0.0:8080 (Container Apps parity).
  • When ASPNETCORE_URLS is set: honor it (including loopback + custom port).

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions