Hello,
I'm trying to create a gem and I would like to have a feature inside it that takes the client ip address when using it. Basically it's just like the rails ActionController request.remote_ip
, but within the gem I don't want to rely/depend on rails.
Is there any way to have something like this purely using Ruby?
I've found this, but when deployed to a production server it only gets the server ip address and not the client one.
Any help would be pretty much appreciated
Thanks a lot