Cannot access some websites when opening ipv6 Routing on Android device

Author: Czile-createCreated Nov 8, 2023Updated Jun 17, 2026
Labelsquestion

What version of shadowsocks-libev are you using?

docker: shadowsocks/shadowsocks-libev:3.3.4

What operating system are you using?

Windows/WSL2/docker

What did you do?

I have both ipv6 and ipv4 public address on my device. And I setup shadowsocks service by docker, here is my docker compose file:

yaml
services:
  shadowsocks:
    image: shadowsocks/shadowsocks-libev
    ports:
      - "1235:8388/tcp"
      - "1235:8388/udp"
    environment:
      - METHOD=aes-256-gcm
      - PASSWORD=***
      - SERVER_ADDR_IPV6=::0
      - SERVER_ADDR=0.0.0.0
    restart: always

I tried to connect my vpn using android client. It works when I close ipv6 routing on my client, but it doesn't work when it's open. Some websites cannot be accessed and the logs in the server is like:

log
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect: Address not available
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect error
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect: Address not available
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect error
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect: Address not available
2023-11-08 23:57:35  2023-11-08 15:57:35 ERROR: connect error

What did you expect to see?

If the website support ipv6, use ipv6 first.

What did you see instead?

In some ipv6-supposted website, it cannot be accessed

What is your config in detail (with all sensitive info masked)?

Posted.

Source: shadowsocks/shadowsocks-libev