edit: It occurs to me that asking for a Perl regexp doesn't mean you know Perl, so the key line is there is the 'grep', which just loops over each private address range. You take your IP, bitwise and it with the netmask, and compare to the network address. If equal, its part of that private network.
Mar 31, 2016 java - Check whether the ipAddress is in private range First of all, Private networks can use IPv4 addresses anywhere in the following ranges: a) 192.168.0.0 - 192.168.255.255 (65,536 IP addresses) b) 172.16.0.0 - 172.31 regex - Private IP Address Identifier in Regular edit: It occurs to me that asking for a Perl regexp doesn't mean you know Perl, so the key line is there is the 'grep', which just loops over each private address range. You take your IP, bitwise and it with the netmask, and compare to the network address. If equal, its part of that private network.
Apr 20, 2012
IP Reserved, Loopback and Private Addresses (Page 3 of 3) Reserved, Loopback and Private Addressing Blocks. Table 47 shows all of the special blocks set aside from the normal IP address space in numerical order, with a brief explanation of how each is used: Private IP address ranges:10.0.0.0 to 10.255.255.255172.16.0.0 to 172.31.255.255192.168.0.0 to 192.168.255.255Definitely private =)This is a Class B public address because the first octet ranges
Map the fields from the Excel spreadsheet to the fields in the IP Range [ip_address_range] table. The fields you need values for are the Start IP and End IP addresses. Click the Mapping Assist Related Link and use the lists that appear to resolve the fields between the table and the data source (the Excel spreadsheet in this example).
17 rows IPv4 Private Address Space and Filtering - American