How to avoid 10 sec WiFiClient connect delay

sorry.

can you give me a hint where your code attempts to connect to another device? you understand that i'm trying to connect to another device, not a WiFi AP.

or even a brief description of what the code is intended to do? it looks like a server that allows other devices to query it, not a node that interacts with peers