Hello, I am having trouble with a simple client/server bluetooth application that I'm writing

I'm using the platform SDK ("Microsoft Platform SDK for Windows Server 2003 SP1") and using sockets.

Bottom line is that I'm getting error code 10050 which, according to various documentation, means the "network is dead" - but I can't seem to figure out where the problem lies since the bluetooth devices work perfectly via IVT BlueSoleil installd on the PCs (The PCs are equipped with a USB dongle, and the program cannot even create the socket where there is no USB device present, so I know the socket creation is fine.