These instructions should work for both Debug/Release builds. In this case we target Release x64.
Open up project properties.
In advanced properties ensure Character Set is set to Not Set
Character Set
Not Set
Check that _CRT_SECURE_NO_DEPRECATE and if targeting an x64 build VB_X64 are in the preprocessor definitions.
_CRT_SECURE_NO_DEPRECATE
VB_X64
Ensure Ws2_32.lib is included as an additional dependency.
Ws2_32.lib