Hi, what's the best way to close the TCP connection if the thread waits with NutTcpReceive() for data and the network-cable was removed or the (any) router failed. If I pluging in the cable again, no TCP connection is possible. Thx, Ralf