Hi Everyone,

I am running a multiplayer game server based on MINA, where 8k users can be
online at certain times of a day. For the latest update I have been doing to
my server, I needed to determine if multiple accounts log in from the same
IP address. For this, I used IoSession.getRemoteAddress() and downcast to
InetAddress, then store the result of getHostName() in a string.

When I ran the server, it quickly got out of memory. When I searched the web
for the issue, I came to a guess that InetAdress' reverse lookup cache may
be filling memory and I saw that people are discouraging the use of
InetAddress.

The question is, is there an efficient way to compare users' IP addresses?
What can you say about InetAddress.hashCode(), InetAddress.getAddress() and
InetAddress.toString()?

Thanks,
Safa Sofuoğlu

Reply via email to