Connect to self hosted odk central using odk collect via IP

Hello
I have setup central on premise, and it's working fine, when connecting with odk collect it works using the domain name , when i switch to IP it fails to connect and there is a need to use IP , is there any way i can allow collect to connect with both domain name and IP ?
here is the error when i try submitting via IP
Upload Results
ICT Survey - Error: Hostname 192.168.40.* not verified: certificate: sha256/2oVZ+kwLc8i+nWHWQxV1KFMMk/
fblocqXYxJORKMF0=
DN: CN=.**.rw,O=,L=,C=RW
subjectAltNames: [
.*.rw, *.rw]

FYI: the IP is reachable when i browse on the same device in browser

It's not possible to securely connect to an ODK Central server via IP. You have to use the domain name.

Thanks alot @yanokwa
But since it's via a vpn tunnel , the network is secured
any possibility considering security being handled at network level?