The connection method is determined by where the 3CX is hosted.

Configuration details for both methods is shown below: