white listing IPs that end in 0/22

Hi, I'm writing an internet program that only certain networks are allowed to view. I got the list of IP addresses to white list in our database but I'm a coder and not an admin. The IP list they gave me look like this:

(I changed the IP to something random to protect my client's network, but that's the ending octet)

I'm not sure what range of IPs this actually encompasses. Can someone tell me? Because at first I thought this meant that the IPs I was supposed to white list were -

but apparently that's incorrect.

Also another one has an ending octet of 64/28

Not really sure what the range on that is actually supposed to be
Who is Participating?
ajeabConnect With a Mentor Commented:
google subnet calculator
put the address then the bit.  
/22 is class b
/28 is class c
tolstoyleoAuthor Commented:
Still doesn't make any sense to me. Given the above subnet masks that I gave in my first question, what is the range of ip addresses? That's really all i want to know.
ajeabConnect With a Mentor Commented:
you need to do some work too.  click on the link
for /22 select class B, put in IP address, select 22 from maskbit. it will give you IP range under "Host address range".  so the first one range from x.52.120.1 - x.52.123.255  

try for second one.
Krys_KConnect With a Mentor Commented:
I know you want to protect your clients IP address but can you let me know what range it is in.
There are 3 classes (ranges) of IP addresses which use a bit mask with each.
This is the basic class range (though some are spcial addresses within each class, but for simplicity sake)
  • Class A - - 127..255.255.255 /8
  • Class B - - /16
  • Class C - - /24
The /22 you gave suggests your IP is in Class B but the random IP address you gave is in Class C
Can you clarify this?
QuoriConnect With a Mentor Commented:
Please never talk in classful address parlance ever again!!!

The /22 represents the number of bits masked as the network bits. So, IP addressing 101 - 32 bits to an IPv4 address, 22 of which make up the network portion and the remaining bits are the hosts and subnets. is subnet mask

In this case, the /22 mask would cover to

Do you need more detail as to how this is worked out?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.