I can connect successfully via USB, but I always get a connection failure via Wi-Fi?

There are several reasons for this:

  1. The PC is not on the same LAN as the phone.
  2. There is a firewall between the PC and the phone.
  3. The network delay between the PC and the phone is large.
  4. Network conditions are unstable

Solution:

  1. Ensure that the PC and the phone are connected to the same AP.
  2. Turn off the network firewall.
  3. Move your PC or phone to a clean network environment.
  4. Find a way to connect directly to a mobile hotspot via PC.