Skip to content

ipv6 support #261

Closed
Closed

Description

@ezrizhu

ipv4 is going to die. Let's support ipv6

Activity

  1. pokemonlover1234 commented on Mar 15, 2019

    @pokemonlover1234
    Contributor

    I'd say support ipv6 even if ipv4 doesnt die

  2. nol166 commented on Mar 21, 2019

    @nol166
    Contributor

    I agree this would be pretty neat

  3. delfer commented on Jun 2, 2019

    @delfer

    IPv6 works.
    Just start server with arguments like ./code-server -h :: -p 8080 -H -P password
    Where is :: like 0.0.0.0 but for IPv6.
    Now you can open Code-server in Chrome by IPv6 address like http://[2022:1111:1111:1111:1111:1111:1111:1111]:8080/ (Change it to your IPv6).
    With other browsers (Firefox and Edge) here is small bug #739
    But I fond workaround: just add DNS AAAA record and it will work with any browser.
    Personally I use https://www.dynu.com/ and set IP with cron job:

    # m h  dom mon dow   command
      * *    *   *   *   /usr/bin/curl 'https://api.dynu.com/nic/update?hostname=MY.DOMAN.NAME&alias=ALIAS&myip=no&myipv6=yes&password=MYDYNUPASSWORD'
    
  4. cxh1205 commented on Nov 15, 2023

    @cxh1205

    IPv6 and IPv4 both work.

    Modify the file ~/.config/code-server/config.yaml:

    bind-addr: "[::]:8080"
    auth: password
    password: your password
    cert: false

    Then you can enjoy accessing http://ipv4-address:8080/ and http://[ipv6-address]:8080/ in your browser.

    IPv6和IPv4都可以正常工作。

    修改~/.config/code-server/config.yaml文件:

    bind-addr: "[::]:8080"
    auth: password
    password: your password
    cert: false

    然后在浏览器中输入http://ipv4-address:8080/和http://[ipv6-address]:8080/即可访问。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSome improvement that isn't a feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions