I'm a mostly client/server programmer. Are you SURE it's the same code for either platform? (provided you include the proper libraries, and don't use MS specific functions)
Cause I'm under the impression that working with sockets for windows is quite different from *nix. For instance, the root and core of my socket programming is having a callback function - which is the message queue for a WINDOW - to notify me of socket-related events.