First, make sure that the VTK submodule is updated on both the client and server:
git submodule update --recursive
I have forgotten to do that and run into similar connection errors.
If that doesn’t work, you can try a make clean
in your build directory. If that still doesn’t work, delete everything inside the build directory and start fresh.