SaeedDev94 / Xray

Xray GUI Client For Android
MIT License
203 stars 23 forks source link

Dear author, your code is excellent. I need an APK for the VMESS protocol. Can you use your spare time to write one #6

Closed wanliyunyan closed 12 months ago

SaeedDev94 commented 12 months ago

You can use any valid Xray-core config, please check this repo: https://github.com/XTLS/Xray-examples

wanliyunyan commented 12 months ago

Great SaeedDev94, here is my config file.

{
    "log": {
        "loglevel": "warning"
    },
    "outbounds": [{
        "protocol": "vless",
        "settings": {
            "vnext": [{
                "address": "my address",
                "port": 443,
                "users": [{
                    "id": "my id",
                    "encryption": "none"
                }]
            }]
        },
        "streamSettings": {
            "network": "ws",
            "security": "tls",
            "tlsSettings": {
                "allowInsecure": false,
                "serverName": "my address"
            },
            "wsSettings": {
                "path": "/my id",
                "headers": {
                    "Host": "my address"
                }
            }
        }
    }]
}

and

var useXray: Boolean = true // has been changed to true
I used InvisibleManXRay-x64 to connect to my proxy server. Your project does not have usage instructions. I understand that I created a folder named files under com.xtls.xray and created a config.json file. The config.json file writes my configuration. But I can't connect to my proxy server, so can you tell me where I'm going wrong?

cdfedc17c5d4cb61cc822751638988e

image image image

image

thanks, please hele me

SaeedDev94 commented 12 months ago

It seems you have a similar issue #5

wanliyunyan commented 12 months ago

I'm using a mobile phone, not an emulator

wanliyunyan commented 12 months ago

I can successfully connect to my proxy server using InvisibleManXRay-x64, so it can be proved that there is no problem with my configuration, so how should I use your project?

SaeedDev94 commented 12 months ago

I noticed that your config missed important part:

{
  "inbounds": [
      {
        "listen": "127.0.0.1",
        "port": 10808,
        "protocol": "socks",
        "settings": {
          "udp": true
        }
      }
  ],
}

Also listen address + port must be same as your settings

wanliyunyan commented 12 months ago

I just realized that I didn't read the config.json configuration file. Should it be placed in the files folder under com.xtls.xray? ed4af5ea493a7a1b5f7843f52e96afd

SaeedDev94 commented 12 months ago

Emmm, I thought it's my repo
You are working on your own project So I have no idea what are you trying to do