Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6 support #261

Closed
ezrizhu opened this issue Mar 15, 2019 · 4 comments
Closed

ipv6 support #261

ezrizhu opened this issue Mar 15, 2019 · 4 comments
Labels
enhancement Some improvement that isn't a feature

Comments

@ezrizhu
Copy link
Contributor

ezrizhu commented Mar 15, 2019

ipv4 is going to die. Let's support ipv6

@ezrizhu ezrizhu added the enhancement Some improvement that isn't a feature label Mar 15, 2019
@pokemonlover1234
Copy link
Contributor

I'd say support ipv6 even if ipv4 doesnt die

@nol166
Copy link
Contributor

nol166 commented Mar 21, 2019

I agree this would be pretty neat

@delfer
Copy link

delfer commented Jun 2, 2019

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'

@ezrizhu ezrizhu closed this as completed Jun 2, 2019
@cxh1205
Copy link

cxh1205 commented Nov 15, 2023

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
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests

5 participants