A socket enters the CLOSEWAIT state when the remote has closed the connection, but the Ethernut application didn't. Looks like your application hangs somewhere before NutTcpCloseSocket(). Harald