attach connector port to point

I need a rail with parameters for the length to which I attach connector ports.
I have done this successfully before, but unfortunately I don't remember how.
I only remember that I attached a point to the object, and then attached the connector port to the point.
The point is created, and it also moves with the parameters.
But now I can't fix the connector port to it. 
Can you give me a tip?