How to get client machine ip address in custom realm? [on hold]
- by Sumit
I want to get client machine ip address in my custom Realm when client attempt to login
basically here is detail requirement of project
User having role 'Admin' can add new users and assign multiple roles and permission ,and at the same time specify list of ip address and countries to restrict them to access website. All these information i am storing in database.
So basically till now i am using shiro default 'authc' filter but now i want ip address of client machine and get country from where request is coming and check it against database and then and then only allow access to website.
Any help..?
Thanks and regards