Page 1 of 1

Duplicate IP address warning

Posted: Thu Jan 14, 2016 8:22 pm
by social
Poker Mavens seems capable of recognizing when two or more players are using the same IP address, correct?

If so, then how can I generate an Alert Message to Admin when two or more people are playing from the same IP address or computer?

Re: Duplicate IP address warning

Posted: Thu Jan 14, 2016 9:21 pm
by Kent Briggs
social wrote:Poker Mavens seems capable of recognizing when two or more players are using the same IP address, correct?
Yes, you can set "Allow duplicate IPs" to No in the Server Settings group to disallow a duplicate from logging in. Also, each ring table has that setting if you just want to prevent duplicates at the same table.
If so, then how can I generate an Alert Message to Admin when two or more people are playing from the same IP address or computer?
You could periodically call ConnectionsList in the API and scan for duplicates (sort by IP, then loop from top to bottom to see if any two consecutive IPs are the same).

Re: Duplicate IP address warning

Posted: Thu Jan 14, 2016 10:11 pm
by social
Kent Briggs wrote:
social wrote:Poker Mavens seems capable of recognizing when two or more players are using the same IP address, correct?
Yes, you can set "Allow duplicate IPs" to No in the Server Settings group to disallow a duplicate from logging in. Also, each ring table has that setting if you just want to prevent duplicates at the same table.
If so, then how can I generate an Alert Message to Admin when two or more people are playing from the same IP address or computer?
You could periodically call ConnectionsList in the API and scan for duplicates (sort by IP, then loop from top to bottom to see if any two consecutive IPs are the same).
So, there is no way to tap into the process associated with the script recognizing two players from the same IP when it happens? Prefer to discover this sooner than later.

Re: Duplicate IP address warning

Posted: Fri Jan 15, 2016 12:28 am
by Kent Briggs
social wrote:So, there is no way to tap into the process associated with the script recognizing two players from the same IP when it happens? Prefer to discover this sooner than later.
If you want to catch it instantly, just monitor the Login Event using the Callback system. And then check that player's IP against the other existing connections.