Hi @bjorn_massoels,
It looks like according to the log the connection is established correctly but then the client close the connection.
What is the operating system you use to run compass? What is the compass version?
Have you tried using a " fill form" compass connection and not a connection string specifying only primary?
Can you also try using the same dns/ip you have in the replica set rs.conf?
Thanks
Pacel