rubygems - Ruby - Get client IP Address from inside a gem -
I am trying to make a gem and I have a feature in it which is the customer's IP address. Originally it is like the train, but within the gem I do not want to depend / depend on the rail.
Am I using Ruby to do something like this?
I have found, but when a production server is deployed it is not only server IP address and customer .
Any help would be greatly appreciated
Thanks a lot
It is possible due to Ruby :) If you are developing a web app then you should use the rack! It is very good and simple otherwise you will have to deal with the 'net' module.
Comments
Post a Comment