elementary socket connection working on linux machine [same code did NOT work on windows machine}