To debug locally-developed programs on a remote machine you must start cobdebugremote (or cobdebugremote64 when debugging 64-bit processes) before communication can be established. See the Visual COBOL help for more information on cobdebugremote.
For more information, see the section on Remote Debugging in your Visual COBOL for Visual Studio 2017 product help.