Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I hosts allow setting:

hosts allow = 127.0.0.1 192.168.1.0/100

So I want every computer within my network to be able to access the server.

Now every IP is good with this setting, but 192.168.1.2 simply doesn't want to connect!

Any ideas why? this is simply illogical... when I disable hosts allow setting all computers can access so the problem is this line!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Your bitmask after the 192.168.1.0 part seems wrong (never seen 100 before), I guess you pretty much mask everything out.

Try 192.168.1.0/24 instead.

You can also use a calculator for the bitmask if you need other IP-ranges.

Just assuming you might have gotten the part after the slash wrong, it does not say from 0 to 100, it tells you about how many numbers of the given adress are kind of hardcoded and how many are variable. Check the wikipedia article on ipv4 subnetting, if you are interested in how this works.

share|improve this answer
    
Yes, the CIDR Notation you are using is impossible, an ipv4 address is only 32 bits in length. Walter is correct, /24 to /32 would be the only valid range on a 192.168.1.x network. This number depicts the subnet mask of the network portion of the address. Though /32 would make it broadcast but that is outside the scope of this question and answer. +1 to this answer. –  Paperlantern Feb 5 '12 at 2:44
    
I thought 0/100 meant from 0 to 100 :) learn everyday! thanks. I will also read more to understand what it means. –  Sandro Dzneladze Feb 5 '12 at 6:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.