• Overview
  • Control Theory
  • Python
  • TwinCAT
  • Profile
  1. TwinCAT
  2. Remote system connection

  • TwinCAT
    • Installation
    • Remote system connection
    • Conversion of commercial PCs to IPCs

On this page

  • 1 Introduction
  • 2 IP Adress Setting
    • 2.1 Execution Environment PC Side Setting
    • 2.2 Development Environment PC Side Setting
  • 3 AMS Net ID Setting
  • 4 Specific Ports Opening
  • 5 Remote System Connection
  1. TwinCAT
  2. Remote system connection

Remote system connection

1 Introduction

In TwinCAT development, while you can install both the development environment (XAE) and Runtime (XAR) on a single machine, it is often more efficient to separate them. Using a Remote System Connection allows you to develop on your primary laptop while the code executes on a dedicated target PC.

2 IP Adress Setting

When using an office PC as a development environment, you may encounter connectivity issues unless a Static IP Address is configured. In many corporate networks, Dynamic IP addresses (assigned by DHCP) can change over time, causing SSH connections, database links, or local servers to break. To ensure a stable connection, follow these steps to manually assign a static IP address to your machine.

Open “Network Connections”, then set appropriate IP addresses on each PC.

How to Open Network Connections

  1. Open Settings from Windows Start.
  2. Click “Network & internet.”
  3. Click “Advanced network settings.”
  4. Click “More network adapter options.”

2.1 Execution Environment PC Side Setting

Open TCP/IPv4 properties of Ethernet to connect to the development environment PC, then set the following IP address and subnet mask.

  • IP adress: 192.168.10.3
  • Subnet mask: 255.255.255.0

2.2 Development Environment PC Side Setting

Open TCP/IPv4 properties of Ethernet to connect to the execution environment PC, then set the following IP address and subnet mask.

  • IP adress: 192.168.10.1
  • Subnet mask: 255.255.255.0

3 AMS Net ID Setting

In the execution environment PC, set the following AMS Net Id. Here, check and set a different AMS Net Id to the development environment PC.

4 Specific Ports Opening

Open Windows Defender Firewall with Advanced Security.

Windows Security -> Firewall & network protection -> Advanced setting

Set the following Inbound Rules and Out Bound Rules in the both PCs.

Protocol Port No. Direction Usage
TCP 48898 Inbound & Outbount Communication
UDP 48899 Inbound & Outbount Broadcast search
TCP 8016 Inbound & Outbount Secure ADS

5 Remote System Connection

  1. Select and click “Choose Target System” in the tab.

  2. Click “Search (Ethernet).”

  3. Check “Advanced Setting.”

  4. Check “IP Address.”

  5. Click “Broadcast Search.”

  6. Select an adapter to connect to the execution environment PC, and push “OK.”

  7. Click Add Route.

  8. Check “Secure ADS”, write an administrator local account info. of the execution environment PC, then push “OK.”

  9. See the execution environment PC’s name in “Host Name” and the key icon in “Connected.”

  10. Close the popup window.

  11. The following figure shows a successful statement of the remote system connection.

© Koichi Sakata 2026

Built with Quarto