Depending on which version of windows you are running
and the error message you are getting is a [10053]
The problem seems to be a winsock error The DHCP Server sent a DHCPNACK message is not resetting itself.
Something to try:
Ping something on your local network. Do you get a response?
Ping the remote host. Does it respond? If not, problem solved. You can try a traceroute to see if the problem is at the target remote host or somewhere in between.
Is there a firewall between your appliation and the remote host? If so, and the connection has been open for a long period of time with no data transfer, its possible that the firewall has timed out the connection and closed the sockets