Thank you for your answer.
But I still don’t know what’s wrong. I tested the USB connection again and it didn’t work. It turned out that I managed to connect via a mobile network.
The network is not loaded and the router is 1 m away from the tablet/smartphone.
Unfortunately, I don’t have a WiFi card on my PC and I can’t use WiFi direct.
The PC connects to the router via cable and the smartphone via WiFi, so far there have been no problems.