Ashwin Kumar Sharma wrote: > Hi, > > I want to compare two IP addresses so I want to convert them to long > integers. Can anyone tell me how it can be done? I need to convert IP > address to long and after I have to convert them back to IP address. > > Thanks in advance.
http://gtools.org/tool/ip-long-convert/ The above site might help u convert a static IP to long. But I don't have an answer for a ruby code which converts an IP address into its long form. -- Posted via http://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

