Error connecting to API server

I’m new to Kopia.
Trying to setup a repo server on a home server to backup family laptops.
Successfully created repository, added users, and started server as:

kopia server start \
  --tls-generate-cert \
  --tls-cert-file ~/my.cert \
  --tls-key-file ~/my.key \
  --address="http://0.0.0.0:51515" \
  --server-username=ABC \
  --server-password=ABC

I get an error when I try to connect to server from my laptop (on the same LAN):

$ kopia repository connect server --url=https://192.168.X.Y:51515 --override-username=user --override-hostname=host
Connecting to server 'https://192.168.X.Y:51515' as 'user@host'...
Enter password to open repository: 

ERROR failed to open repository: unable to establish session for purpose=: error establishing session: Session(): rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, not 192.168.X.Y"

What could I do to fix this? Please help.

Cert is generated by default for 127.0.0.1 host as per docs:

--tls-generate-cert-name 127.0.0.1 [ADV] Host names/IP addresses to generate TLS certificate for

and you connect to 192.168.X.Y hence the error message:

@kapitainsky thanks so much, I added the server IP and that error went away, however I am getting this other error now:

ERROR error connecting to API server: unable to establish session for purpose=: error establishing session: Session(): rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate signed by unknown authority"

From documentation,

kopia repository connect server --url https://<address>:51515 \
  --server-cert-fingerprint 48537cce585fed39fb26c639eb8ef38143592ba4b4e7677a84a31916398d40f7

You need to add server cert fingerprint