By simonbingham
via simonbingham.me.uk
Submitted: Mar 11 2013 / 16:18
I recently worked on a project where I needed to: store an IP address in a database, retrieve the IP address at a later date, determine if an IP address is present within a range of addresses. To complicate things further I needed to be able to handle IP addresses of both IPv4 (e.g. '70.112.108.147') and IPv6 (e.g. '70.112.108.147.123.123') format.
Add your comment