Skip to content

code-server --link on Termux fails #4014

@gphg

Description

@gphg

OS/Web Information

  • Web Browser: Latest stable Opera Desktop
  • Local OS: Windows 10 64-bit
  • Remote OS: Android 10
  • Remote Architecture: aarch64
  • code-server --version: 3.11.1 acb5de6

Steps to Reproduce

  1. Get code-server installed on Termux by following this docs: https://github.com/cdr/code-server/blob/main/docs/termux.md
  2. code-server is installed and it works fine without --link, I managed to run it on same local area desktop web browser via !P address.
  3. Stop the program, then rerun it with --link: code-server, the following error shown bellow:
~ $ code-server --link
[2021-08-21T13:29:23.818Z] info  code-server 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46
[2021-08-21T13:29:23.828Z] info  Using user-data-dir ~/.local/share/code-server
[2021-08-21T13:29:23.917Z] info  Using config file ~/.config/code-server/config.yaml
[2021-08-21T13:29:23.917Z] info  HTTP server listening on http://127.0.0.1:38223 (randomized by --link)
[2021-08-21T13:29:23.918Z] info    - Authentication is disabled (disabled by --link)
[2021-08-21T13:29:23.918Z] info    - Not serving HTTPS (disabled by --link)
[2021-08-21T13:29:24.009Z] info  ping server: dial server: failed to WebSocket dial: failed to send handshake request: Get "https://cloud.coder.com/latency": dial
tcp: lookup cloud.coder.com on [::1]:53: read udp [::1]:55865->[::1]:53: read: connection refused
[2021-08-21T13:29:24.028Z] error --link agent exited with 1

Expected

It should works normally.

Notes

I tested it on Google Cloud Shell (it's Debian), get installed via install script and get it running normally. Screenshot is below:

image

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