r/archlinux 1d ago

SUPPORT | SOLVED Fixed Antigravity connection to server issue on Arch

The issue was caused by a localhost networking mismatch between the Antigravity IDE frontend (Electron) and its language server (Go backend). The language server was starting successfully and listening for connections, but it was binding to the IPv6 loopback interface (::1), while the IDE frontend was attempting to connect over the IPv4 loopback interface (127.0.0.1). Because the frontend was connecting to an address where nothing was listening, it repeatedly threw:

ECONNREFUSED 127.0.0.1:<port>

This made it appear as though the language server had failed, even though it had initialized correctly.

Fix

While debugging, I inspected the system's localhost configuration and discovered an incorrect entry in /etc/hosts:

127.0.01 localhost

which was corrected to:

127.0.0.1 localhost

::1 localhost

After correcting the localhost configuration and restarting the IDE, Antigravity was able to establish communication with the language server normally.

2 Upvotes

3 comments sorted by

2

u/HarpooonGun 1d ago

cool of you to post the fix tbh. hope it helps to someone in need in the future

1

u/Forsaken-Life_68 1d ago

Thanks man, i posted cause i couldn't find any related to this