In a mutual TLS connection, both the client and server authenticate each other using digital certificates.
However, when the client presents a certificate, the server only sees the client's IP address and not the domain name to be able to compare it with the domain in the subject of the certificate. In such cases, how can the server verify the client's identity and ensure that the client is who they claim to be?