---
title: "不禁用IPV6的同时xdroid可以联网的办法"
id: "3045"
type: "post"
slug: "%e9%b1%bc%e5%92%8c%e7%86%8a%e6%8e%8c%e6%88%91%e9%83%bd%e8%a6%81"
published_at: "2020-05-27T14:10:45+00:00"
modified_at: "2020-05-28T03:44:14+00:00"
url: "https://seq.ink/all/3045.html"
markdown_url: "https://seq.ink/all/3045.html.md"
excerpt: "另一个不禁用ipv6的方法：link sudo apt install tinyproxy sudo systemctl start tinyproxy.service sudo systemctl enable tinyproxy.ser ..."
taxonomy_category:
  - "ALL"
  - "Coding代码堆"
  - "Linux"
  - "Live日常"
  - "Share分享"
---

另一个不禁用ipv6的方法：[link](https://bbs.deepin.org/forum.php?mod=viewthread&tid=195148)

```
sudo apt install tinyproxy
sudo systemctl start tinyproxy.service
sudo systemctl enable tinyproxy.service 
```

给qq设置http代理地址为：127.0.0.1:8888  
 可以修改`/etc/tinyproxy/tinyproxy.conf`文件把端口改成其它

下面方法不具备通用性，看上面的方法  
 ~~deepin-wine版的QQ想要正常接受图片需要禁用IPV6，但禁用IPV6后xDroid就无法联网。  
 想2个都能正常使用该怎么办？  
 自己复制下面这段代码执行：~~

~~我的测试环境是UOS SP1 和 xDroid4.0版本。其它发行版应该都可以用~~

```
sudo sh -c "cat > /etc/rc.local" << EOF
#!/bin/sh -e
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
exit 0
EOF~~
```

~~重启你就会发现xDroid可以正常联网，QQ也可以正常接受图片了~~
