Portenta Machine Control Ethernet Communication (TCP)

Hi,
I want to establish a client server communication between the PMC and my PC to send and receive data from a C# application.
I tried both: PMC as client and as server (from advanced chat server example)
I want to use the PMC in PLC IDE, which means means my sketch file runs under the Resources/Sketch section.

#include <PortentaEthernet.h>
arduino::EthernetClass eth(&m_netInterface);
#include <Ethernet.h>
#include <SocketHelpers.h>
#include <MbedServer.h>
#include "Wire.h"
#include <Arduino_MachineControl.h>
using namespace machinecontrol;

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 2, 170);
IPAddress myDns(192, 168, 2, 1);

EthernetServer server1(555);
EthernetClient client1;

void setup()
{
	eth.begin(mac,ip,myDns);
	delay(1000);
	server1.begin();
	Serial.print("server address:");
	Serial.println(eth.localIP());
}



void loop()
{
    if(!client1.connected())
    {
        // check for any new client connecting
        EthernetClient newClient = server1.available();
        if(newClient>0)
        {
            client1 = newClient;
            client1.println("connected with PMC");
            Serial.println("client connected");
        }
    }
    
    Serial.println("running");
}

The problem is, that the execution of the loop() stopps when I connect the client (tested with "running" message over Serial).

If I try the advanced chat server example, provided in arduino_mbed_portenta\libraries\Ethernet\examples\AdvancedChatServer
the system does not start proberly. After Serial output: "Initializing Partitions of file system..." nothing happens and reconnection in PLC is only possible after running the bootloader.

The lack of Arduino representation and support for the “Pro” line is unbelievable. I never see an answer from Arduino in the Portenta or Opta threads. Is threre another more direct form to get help for the “Pro” line? Maybe you are missing?

I only ask because I had a partial thought of maybe using the “pro” line for my business and clients but the lack of support on the forum tells me otherwise.

Hey Arduino? Are you looking to hire people to use your products and actually support these poor people? I’ll do it!!! Cause the pro line will die soon otherwise…

Edit: sorry i cant help you. I am venting here

Hi @aubrey4485 ,

Sorry for any inconvenience.

@tim_214 has already contacted us and is being assisted by the Arduino technical support team.

If you require any information, please do not hesitate to contact us via https://www.arduino.cc/en/contact-us/.

Thank you for your understanding.

Best,

Answer from the Arduino support:
"Using the ChatServer on the PLC IDE 1.0.3 is not possible. The ethernet connection is dedicated to Modbus. This will be fixed on the next version of the PLC IDE."