OPC-UA Server devices not connecting

Some of the PLC device connection is not going through successfully. I can ping the device IP, but on the gateway, in the list of the devices, they don’t get connected. It tries to reconnect and fails.
I haven’t change any setting, it was working fine in the past.