Duplicate IP address warning

For discussion of the Poker Mavens server module and other administration topics
Post Reply
social
Posts: 211
Joined: Fri Nov 20, 2009 12:23 am

Duplicate IP address warning

Post 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?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Duplicate IP address warning

Post 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).
social
Posts: 211
Joined: Fri Nov 20, 2009 12:23 am

Re: Duplicate IP address warning

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Duplicate IP address warning

Post 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.
Post Reply