yanue / V2rayU

V2rayU,基于v2ray核心的mac版客户端,用于科学上网,使用swift编写,支持trojan,vmess,shadowsocks,socks5等服务协议,支持订阅, 支持二维码,剪贴板导入,手动配置,二维码分享等
https://github.com/yanue/V2rayU
18.62k stars 2.86k forks source link

socks error - listen tcp: lookup tcp/1 080: nodename nor servname provided, or not known #471

Closed Tiisetso closed 4 years ago

Tiisetso commented 4 years ago

1) 你正在使用的 V2RayU 和 Mac 版本 ? V2RayU v2.1.0 Mac 10.15.3

2) 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) Was working perfectly then I updated to the v2.1.0. Now when I try to turn on the core,

"socks error - listen tcp: lookup tcp/1 080: nodename nor servname provided, or not known"

Tried changing ports.

Deleted .plist.

Total uninstallation and clean reinstallation of V2RayU.

Doesn't help.

Additionally. I have re-added the the configuration by QR code and URL. Sometimes I get "invalid inbound.port" sometimes it works. Again, adding automatically, no manual input.

Even if I rollback to the previous v2RayU release it also doesn't work now. I'm not sure what has changed.

V2Ray still works on my iPhone using ShadowRocket.

Please help.

P.S. Your software is amazing. Easily the best client, thank you for it.

3) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

  {
  "log": {
    "error": "",
    "loglevel": "info",
    "access": ""
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "protocol": "socks",
      "settings": {
        "udp": false,
        "auth": "noauth"
      },
      "port": "1 080"
    },
    {
      "listen": "127.0.0.1",
      "protocol": "http",
      "settings": {
        "timeout": 360
      },
      "port": "1 087"
    }
  ],
  "outbounds": [
    {
      "mux": {
        "enabled": false,
        "concurrency": 8
      },
      "protocol": "vmess",
      "streamSettings": {
        "wsSettings": {
          "path": "/",
          "headers": {
            "host": "<REMOVED>"
          }
        },
        "tlsSettings": {
          "allowInsecure": true
        },
        "security": "tls",
        "network": "ws"
      },
      "tag": "proxy",
      "settings": {
        "vnext": [
          {
            "address": "<REMOVED>",
            "users": [
              {
                "id": "<REMOVED>",
                "alterId": 233,
                "level": 0,
                "security": "aes-128-gcm"
              }
            ],
            "port": 443
          }
        ]
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "AsIs",
        "redirect": "",
        "userLevel": 0
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {},
  "routing": {
    "settings": {
      "domainStrategy": "AsIs",
      "rules": []
    }
  },
  "transport": {}
}

4) 请附上出错时软件输出的错误日志。

v2ray-core.log is empty.

"socks error - listen tcp: lookup tcp/1 080: nodename nor servname provided, or not known"

Tiisetso commented 4 years ago

I think it might be an issue with v2.1.0. After reading some subsequent bug issues I did a port scan and found constant activity on 1086/87 regardless of whether V2ray was on or not. So I uninstalled it again, clearing every single associated file. Ran a port case, 1086/87 now free. Installed v2.0.0 and everything is working as normal. No changes to server.

Ignore the highlight.

Screenshot 2020-03-10 at 08 14 13

I recommend waiting for v2.1.1.

yanue commented 4 years ago

试下2.2

MPTres commented 4 years ago

@yanue This keeps happening in Catalina 10.15.4 (19E287)

The problems seem to be that depending on the system language, the port text field in preferences uses periods instead of commas.

preferences-screen

And then, the port number is stored in preferences with the period:

preferences-file

when that happens, we get that error. If i manually change the numbers in the preferences file (net.yanue.V2rayU.plist) to remove the period, the core starts fine.

jason-shen commented 4 years ago

@yanue This keeps happening in Catalina 10.15.4 (19E287)

The problems seem to be that depending on the system language, the port text field in preferences uses periods instead of commas.

preferences-screen

And then, the port number is stored in preferences with the period:

preferences-file

when that happens, we get that error. If i manually change the numbers in the preferences file (net.yanue.V2rayU.plist) to remove the period, the core starts fine.

what location is net.yanue.V2rayU.plist located, i couldn't find this file at all, just want to change it manually until the next release

cheers

Tiisetso commented 4 years ago

@yanue This keeps happening in Catalina 10.15.4 (19E287) The problems seem to be that depending on the system language, the port text field in preferences uses periods instead of commas.

preferences-screen

And then, the port number is stored in preferences with the period:

preferences-file

when that happens, we get that error. If i manually change the numbers in the preferences file (net.yanue.V2rayU.plist) to remove the period, the core starts fine.

what location is net.yanue.V2rayU.plist located, i couldn't find this file at all, just want to change it manually until the next release

cheers

~/Library/Preferences/net.yanue.V2rayU.plist