Skip to content

studio: server binds to 127.0.0.1 only, localhost unreachable when Docker Desktop shifts resolution to ::1 #5965

Description

@LeoBorcherding

Summary

On machines where Docker Desktop has modified the hosts file, localhost resolves to ::1 (IPv6) instead of 127.0.0.1 (IPv4). The studio server only binds to 127.0.0.1 by default, so navigating to localhost:8888 fails to reach the server while 127.0.0.1:8888 works fine. This affects all installs on Windows with Docker Desktop, not just --local.

Steps to reproduce

  1. Have Docker Desktop installed on Windows
  2. Install and start Studio (any install method)
    Open localhost:8888 in browser - hits ::1 (IPv6), server not listening there, connection refused or stale cached page shown
  3. Open 127.0.0.1:8888 - works correctly

Root cause

studio/backend/run.py line 611 defaults host to "127.0.0.1". Docker Desktop comments out the default localhost entries in C:\Windows\System32\drivers\etc\hosts, causing Windows DNS to fall back to resolving localhost as ::1. The server is only listening on IPv4 so the connection fails.

Suggested fix

Change the default bind host from 127.0.0.1 to 0.0.0.0 so the server binds all interfaces and both localhost and 127.0.0.1 work regardless of how the OS resolves localhost.

Environment

Windows, Docker Desktop installed.

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