Data source: http://rosettacode.org/wiki/Parse_an_IP_Address
