Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Mark Percival www.mpercival.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Convert an integer to IP string

Convert an integer to IP. I don't think you can do this with IPAddr, but I could be wrong

Edit, the original didn't work for low ranges.

And I was wrong about the IPAddr thing. I should have google'd better.

IPAddr.new(16909060, Socket::AF_INET).to_s
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS