Skip to content

IPv4/IPv6 mismatch #3

@woelfman

Description

@woelfman

Running through the initial setup on Fedora 42, the backend services are started on 127.0.0.1 and the frontend service tries to connect to localhost, which on my system is ::1. This causes errors such as

Proxying challenges/current: /api/challenges/current → http://localhost:8002
Proxying: /api/tanks → http://localhost:8000
9:08:47 AM [vite] http proxy error: /api/challenges/current
Error: connect ECONNREFUSED ::1:8002
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)

I was able to work around this by editing vite.config.ts and replacing localhost with 127.0.0.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions