Try playing around with the ipiphy plugin.
You can grab the users IP that way and then perform certain actions.
Tal nocodify.com