Minor detail really, but under Windows 2000, code had to include winsock2.h, and remove include of windows.h to compile. // #include <windows.h> #include <winsock2.h> #include <stdio.h> #include <stdlib.h> > #include <windows.h> > #include <stdio.h> > #include <stdlib.h> -- Jason