Jrohy/webssh

Request for two supports for IPv6

if1y opened this issue · 15 comments

if1y commented
  1. Whenever I tried to connect with an IPv6 host, the websocket connection closed. Hope this can be supported~

  2. It seems unable to run in IPv6-only server, even I have already added 6to4 nameservers to make the server able to handle IPv4 communications.

Jrohy commented

no ipv6-only server to test 😢

if1y commented

no ipv6-only server to test 😢

I can provide if you need. Or tell you a way I know to apply for ipv6-only free server.

Jrohy commented

tell me how to get ipv6-only free server

if1y commented

tell me how to get ipv6-only free server

Apply: https://www.daniao.org/8436.html
Add IPv4 support: https://www.cokemine.com/euserv-ipv6-vps.html

Jrohy commented

1.8 version support ipv6 server, thank u for your support

if1y commented

Just tried on server has both IPv4 & IPv6 addresses.
Seems still unable to connect with an IPv6 host~

Jrohy commented

ipv6 only-server is ok, i test continue..

if1y commented

I'll try later on ipv6-only server

Jrohy commented

if u run with docker , please replace '-p 5032:5032' to '--net=host', use -p can't use in ipv6, use --net=host is ok

Jrohy commented

i fixed the readme docker run:
docker run -d --net=host --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai jrohy/webssh

if1y commented

if u run with docker , please replace '-p 5032:5032' to '--net=host', use -p can't use in ipv6, use --net=host is ok

seems unable to use other ports but 5032 in this way?

Jrohy commented

docker run -d --net=host --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai jrohy/webssh -p 5033, add -p xxx to docker run to change port

if1y commented

what's more:
any way to connect to ipv4 host?
now i'm using ipv6-only server with nat64

Jrohy commented

if ssh command can't connet ipv4 in ipv6-only server, webssh also can't connect

if1y commented

Solved with a vps (IPv4 + IPv6).
Now I can connect to both type of hosts~


Thank you for effort and explaination!