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 Enterprise Developer help for more information on cobdebugremote.
For more information, see the section on Remote Debugging in your Enterprise Developer for Visual Studio 2017 product help.