Mdash in ESP32 with Ethernet W5500

Hi, I have used the Mdash with WiFi & PPP in ESP32 Arduino, it is working perfectly. But recently I have integrated with Ethernet. The Mdash is not connecting. The Ethernet connection is working with pubSub module but not with the Mdash.

Code:

Setup(){
    Serial.print("\n Starting Eth test");

    Jsn_config JSN_CNF;

    JSN_CNF.SPIFFS_begin("/Config_File.json"); // Config file SPIFFS Initialisation

    byte cmflg = JSN_CNF.Load_Config("/Config_File.json", &CF);

    COM.Com_PutConf(&CF);

    COM.Wifi_connect(CF.WF_ssid, CF.WF_pswd, 10000);

    COM.Ethernet_init(4);

    EthClient = new EthernetClient();

   

    if(CF.MQTT_Auth == 1) // If AWS Auth

    {
        Serial.print("\n SSL ON");
    }

    else

    { // If not Auth

        Serial.print("\n SSL OFF");

        COM.MQTT_SetClient(*EthClient); // Pubsub default as Wifi Client

    }

    COM.TCP_connect(CF.Tcp, CF.Port); // Wifi based TCP connect

    OT.Mdash_Begin(CF.Mdash_pswd);

    //RPC.RPC_Begin();

    COM.KeepAlive_Task(LAN);

    while(1){

        if(COM.ConRdy_stat == 1)  // If MQTT client is connected

        {

            bool Pub_stat = COM.MQTT_Publish(CF.MQTT_Topic, "Hello1");

            if(Pub_stat == 1)

            {

                Serial.println("\n Successfully sent to Cloud");

            }

            else

                Serial.println("\n Failed to sent to Cloud");

        }

        delay(5000);
    }
}
}

Output:

3408 2 mDash.c:810:doinit               Initialised, id
343c 3 mDash.c:746:timercb              ram: 175632, 2 0x0/0x0/0x0
343d 3 mongoose.c:3494:mg_connect       1 -1 udp://time.google.com:123
343e 3 mongoose.c:3494:mg_connect       2 -1 udp://8.8.8.8:53
3444 4 mongoose.c:364:mg_sendnsreq      1 resolving time.google.com @ 8.8.8.8, txnid 1
344c 3 mongoose.c:4161:mg_send          2 0x30 0:0 -1 err 118
3451 1 mongoose.c:406:mg_error          2 0x30 DNS send
3456 4 mongoose.c:4650:mg_mgr_poll      2 -- tchrC
345a 1 mongoose.c:406:mg_error          1 0xffffffff DNS error
3460 3 mongoose.c:3471:mg_close_conn    2 closed
3464 4 mongoose.c:4650:mg_mgr_poll      1 -- tchRC
3468 3 mongoose.c:3471:mg_close_conn    1 closed