Skip to content

IDE can't start if localhost resolve to IPv6 address #2579

Open
@StevenLeRoux

Description

@StevenLeRoux

Describe the problem

When a linux system is using a default localhost resolving to ::1 (IPv6 localhost address), IDE won't start because the backend process is only listening to 127.0.0.1:<port>.

Listening on both 127.0.0.1 and ::1 by just providing the port would solve the problem.

To reproduce

To reproduce, just ensure having the following configuration in your /etc/hosts file :

::1	localhost.localdomain	localhost

instead of

127.0.0.1	localhost.localdomain	localhost

Expected behavior

IDE could support dual stack if in order to be started in any situation. Otherwise it shouldn't rely on dynamic resolution that can end up in an incompatible configuration.

Arduino IDE version

2.3.3

Operating system

Linux

Operating system version

Archlinux

Additional context

Discussion thread: https://forum.arduino.cc/t/ide-2-3-3-not-starting-with-error-14-unavailable-no-connection-established/1325816

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions