Hi,

how can I get the client ip address from Thread in Tomcat?

In JBoss 7.1.1 I was using this piece of code

Thread.currentThread().getName();

and the generated output was:

jboss - http-localhost.localdomain-127.0.0.1-8080-1
tomee - http-bio-8080-exec-1

I want to get the IP address in the format of 127.0.0.1.

Thanks in advance,
Luca

Reply via email to