Blueprint is not a 'object'

I just want to synchronize our steps. I test your code and blueprint and I achieved similar error, because Connect to Server node require object to execute this member function (target socket in node). To avoid this you should make this function static. I wonder did you try to recreate this node? It looks like this node is very old.

In addition, look at this tutorial.

Hope it helps!