Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Failed to Connect to Cinema 4D, with port: 7788

    Cinema 4D SDK
    python 2023 2024
    2
    3
    713
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RenatoTR
      RenatoT
      last edited by

      Hello everyone,

      I've encountered an issue while using Visual Studio Code with Cinema 4D 2023 or 2024. When I click on the 'C4D X' extension in the bottom left corner of VSCode, I receive the following error: 'Failed to Connect to Cinema 4D, with port: 7788.' It appears that there is little to no information available online regarding this problem.

      My primary goal is to debug Python plugins within VSCode. If anyone has encountered and successfully resolved this issue or can provide guidance, I would greatly appreciate your assistance.

      Thank you in advance for your help!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by m_adam

        Hi @RenatoT, did you updated the Visual Studio Code extension to it's latest version (v1.1.1?) and did you started the Code Exchanger within Cinema 4D? The Start/Stop Code Exchanger command can be found in the Script Manager palette. It should be started and then once it's started you can click on the 'C4D X' button and it will connect to it.

        If it does not, then it's most likely there is something blocking in your network infrastructure. Start Code Exchanger will start a local server. The port used by default is 7788 but you can change it in the Script Manager Edit menu -> Code Exchanger Settings.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • RenatoTR
          RenatoT
          last edited by

          ah! Thanks a lot!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post