How to close and open TCP connections properly

You are totally right. It is very very tricky problem. And to be honest with you I faced a lot of problems before and I did not know that it was related to the wrong MAC address. Thanks to one of the forum members he pointed out that issue.
Now it became like a rule of thumb. Whenever I see something weired in networking, I check the mac address first :D.

Fixed.