mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "心冶独孤" <qaddafi2...@foxmail.com>
Subject how to get the real client ip--Emergency
Date Fri, 18 Apr 2014 05:27:27 GMT

I am using Mina to developing a server program.
When the client directly connects to the server, using the following code I can get the ip:
String clientIP = ((InetSocketAddress)session.getRemoteAddress()).getAddress().getHostAddress();
But, when we use a F5(load balance machine) between the client and server, I can't get the
real ip now.
Instead, I get the virtual ip(LAN ip) from F5.
I need the real ip, can you help me?

Best Regards,
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message