Set the endpoint of the node.