IKEv2 Problem

Hello, I have a router, and I have installed certificates on it to access the VPN through IKEv2. I can connect to it locally without any problems. However, once I configure it for global access and attach the ISP cable to SFP2, I regenerate the certificates because I set the global IP address on Ether2 locally to test the VPN connection through LAN, and I exchanged the IP address from ether2 to SFP2. Despite these changes, I can’t establish a VPN connection. In the logs, I see an error message: ‘Identity not found for server: X.X.X.X, peer: FQDN: certificate-common-name,’ and it instantly terminates the session. My task is to connect Android devices above version 12 to the Mikrotik router without using any third-party software.

I also tried to ignore remote ID, auto, FQDN user, and other settings in identities. For the client certificates, the common name is ‘Client1,’ and on the Android side, the local ID is also 'Client1.