# Connecting elements in Diagram elements

You can connect elements in diagrams automatically or manually.

The automatic connections are based on the IP addresses of the elements or on the Routing configuration.

To help you maintain the clarity of your diagrams, you can also use turning points. Turning points are useful, for example, in complex diagrams where connections would otherwise cross each other.

To create a turning point, click Add Turning Point. Click in the middle of the connection between the two elements, then drag the turning point to the direction of your choice to create an angle.