Link Details

Link 937483 thumbnail
User 962555 avatar

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.
  • 1
  • 0
  • 211
  • 38

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java