Below is the example. We have an application which is deployed in Oracle Weblogic Server. And We have client who use our application by creating connection using weblogic context like below.
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL,
"t3://weblogicServer:7001");
Context ctx = new InitialContext(env);```
** Now When they make this connection we want to get their hostname in our application.
Is there any way to achieve this. **