PHP IPv4 and IPv6 Network and Subnet Calculator

Just threw together a quick and dirty PHP-based subnet calculator. What sets this one apart from others is that it works with both IPv4 and IPv6 inputs and has subnet splitting capability.

Use the first field to enter a network to get details about. The format is CIDR notation ‘1.2.3.4/22’.

Use the second field to split the first network into smaller networks. The notation is ‘/24’. The network must be smaller than the 1st one obviously. Click any of the smaller subnets to show details.

http://djlab.com/stuff/ipcalc.php

Source code is on github:

https://github.com/djamps/php-ipv6-calculator

3 Responses to PHP IPv4 and IPv6 Network and Subnet Calculator

  1. Paul says:

    Please, no, PLEASE, share src of this AWESOME calc.

  2. Paul says:

    No any chance?
    Randy, please!

  3. Amit says:

    Hi Randy,

    This is exactly what I need. Could you please share the source code? Please !!!

    Thanks.
    Amit.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Anti-Spam Quiz: