IP address range question.

Forum General Networking : Network General Discussions - IP address range question.

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hi, my first post here :)

I have a question that might sound stupid but I come from a software programming background and currently I'm working on a project that involves some IP range checking, so here's my issue.

Let's assume a this is the range case we have:

1.2.10-20.30-40

What IP addresses would fit that range and which ones would not fit the range, let me give you some IP examples and please tell me which one fits in and which one does't:

1.2.15.34
1.2.15.44
1.2.25.34
1.2.25.44

My understanding is the IP range that I provided contains the IP addresses in the following order:

1.2.10.30
1.2.10.31
1.2.10.32
1.2.10.33
.
.
.
1.2.11.30
1.2.11.31
.
.
.
And so on...

But my workmates tell me this is what it means:

1.2.10.30
1.2.10.31
1.2.10.32
.
.
.
1.2.10.255
.
.
.
1.2.11.1
1.2.11.2
1.2.11.3
.
.
.
1.2.11.255
.
.
.
1.2.20.1
1.2.20.2
1.2.20.3
.
.
.
1.2.20.40

End.

I'm sorry if I was't very clear, but this is a very confussing case I'm working with right now, so please bare with my explenation....

Sponsored Links
Register or log in to remove.

If you got a range that is 1.2.10-20.30-40

You are limiting your range the third and fourth octet, hence you are correct.

Reply to El0him

That range would indeed be 10.2.10.30 - 40 , 10.2.11.30 - 40 ... 10.2.20.30 - 40. That means you are correct in your interpretation.

Reply to calyn
Tom's Hardware > Forum > General Networking > Network General Discussions > IP address range question.
Go to:

There are 1294 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them