How to use AlternateAddress in java SDK?

I create a multinode cluster using docker. then I realized it’s not possible to access via java SDK unless using the AlternateAddress feature. But I’m struggling to use it and unable to find a good example on the internet.
Can anyone help?
Thanks in advance…

Hello @Ihide not sure if this helps but worth looking at

https://docs.couchbase.com/java-sdk/current/howtos/managing-connections.html#alternate-addresses
https://docs.couchbase.com/server/current/rest-api/rest-set-up-alternate-address.html