SyntaxFix
Write A Post
Hire A Developer
Questions
I would just use the request.remote_ip that's simple and it works. Any reason you need another method?
request.remote_ip
See: Get real IP address in local Rails development environment for some other things you can do with client server ip's.