# emllRemote The emllRemote is used to tunnel EtherCAT® frames within a TCP socket between EC-Master and EC-Simulator. The parameters to the Remote Driver are setup-specific. The function `CreateLinkParmsFromCmdLineRemote()` in [`EcSelectLinkLayer.cpp`](_downloads/bf62c71a4a7e317930818b9da4a9815c/EcSelectLinkLayer.cpp) demonstrates how to initialize the driver instance. ### struct EC_T_LINK_PARMS_REMOTE ### Public Members ### [EC_T_LINK_PARMS](emll_init.html.md#_CPPv415EC_T_LINK_PARMS) linkParms Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_REMOTE. ### [EC_T_DWORD](api.html.md#_CPPv410EC_T_DWORD) dwSocketType Socket type. Must be set to 1 (emrassocktype_tcp). ### [EC_T_BYTE](api.html.md#_CPPv49EC_T_BYTE) abySrcIpAddress[4] Source adapter IP address (listen) ### [EC_T_WORD](api.html.md#_CPPv49EC_T_WORD) wSrcPort Source port number (listen) ### [EC_T_BYTE](api.html.md#_CPPv49EC_T_BYTE) abyDstIpAddress[4] Destination adapter IP address (connect) ### [EC_T_WORD](api.html.md#_CPPv49EC_T_WORD) wDstPort Destination port number (connect) ### [EC_T_BYTE](api.html.md#_CPPv49EC_T_BYTE) abyMac[6] MAC address ### [EC_T_DWORD](api.html.md#_CPPv410EC_T_DWORD) dwRxBufferCnt Frame buffer count for interrupt service thread (IST) While EC-Simulator listens on the given port using emllRemote, the EC-Master can connect to it using emllRemote. EcSimulatorHilDemo command line example: : ```console $ EcSimulatorHilDemo -remote 1 0 0.0.0.0 10001 0.0.0.0 0 -f eni.xml ``` EcMasterDemo command line example: : ```console $ EcMasterDemo -remote 1 1 0.0.0.0 0 127.0.0.1 10001 ```