Mohammad,
I am glad you found a workaround, but still have concern as to why the socket was being dropped with no error, regardless of what you tried. In my application, forced reboots will not be a fix.
Is anybody else using tcp/ip connectivty long term without problems?