so you are using the WebClient-sketch that connects a single time and then waits forever in while(true)?
Do you reset to execute the next request-attempt?
If so it could be the local-port is allways the same after reset so you cannot connect because the other side drops the packets as duplicates.
- Norbert