Compiling Socket Programs Using Microsoft Visual C++
By default, the Winsock library, the library that contains the socket functions for Microsoft Windows systems, is not automatically included when your program is linked. Without this library, you will get several errors when you compile and link your program that claim it cannot find the socket functions. You must add the wsock32.lib library to the list of libraries searched when you generate your program. To do this:
1. Go to the Project menu and select Settings.
2. Select the Link tab.
3. Under Object/library modules, add wsock32.lib to the beginning of the list.
4. Press OK.
Note that some Unix systems have security restrictions that may prevent your program from executing the bind function. It is recommended that you run your server programs on a PC. The clients can run on either a PC or one of the Unix systems.