When running the remix application, an error occurred: "connect ETIMEDOUT", and the project was terminated

I have encountered a technical problem and I need help.
The command I ran is:shopify app dev --tunnel-url=https://4ee0-222-68-0-86.ngrok-free.app:8080
I use my own tunnel ngrok.
I use proxies to access websites, such as the ClashX application.
I have set the environment variables.
SHOPIFY_HTTPS_PROXY=http://127.0.0.1:7890
SHOPIFY_HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
HTTP_PROXY=http://127.0.0.1:7890
The project was functioning properly at the beginning.
The created applications can be displayed in the corresponding developer store’s backend application.
The application was created based on the descriptions in the document, and all the functions are functioning properly.
But less than a minute had passed before…
The terminal displayed an error message and the application was interrupted.
The error message is:

Error: connect ETIMEDOUT 34.111.204.238:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17)

I have tried using proxychains4 to force all Shopify CLI requests to go through a proxy.But it didn’t work.The problem still exists.
I also tried using the default Cloudflare Quick Tunnels.The problem still exists.

Could someone help me solve this problem?

I also encountered the same problem. Have you solved it?

It hasn’t been solved yet.

If you are using Clash, you can try to solve this problem by enabling the “TUN mode”.

If you are using VPN, you need to enable TUN mode

After using the TUN mode, ngrok cannot be used. Even if Cloudflare is used by default and ngrok is not used, a prompt will appear: “Could not start Cloudflare tunnel: max retries reached. Error: The client network socket was disconnected before a secure TLS connection was established.” Are there any solutions to these problems?

1.Usually, TUN mode does not affect the startup of ngrok

  1. npm run dev
"scripts":{
"dev": "shopify app dev --tunnel-url https://xxxxxxxx.ngrok-free.app:8000",
}

In my experience, your error occurred when the TUN mode was not working. Have you tried switching nodes before?

Thank you for your reply. After I enabled the TUN mode, by using the command: ngrok http http://127.0.0.1:8080, the prompt appeared:
Session Status reconnecting (failed to send authentication request: EOF)
I’m currently using Clash Verge. Do I need to make any specific configurations within this program?