I am planning to configure my tomcat to support SNI, the same IP configured serves with a dual-domain with different certificates.
I would like to know how to get both the domain during Startup, for the single domain we are getting this using InetAddress.getLocalHost()