On Thu, 8 May 1997, Andrew Brennan wrote:
> On Thu, 8 May 1997, Penisoara Adrian wrote:
>
> > Yes, you're right ! 127.0.0.1 is an A class address, so its network mask
> > is in fact 255.0.0.0! But I don't know about 127.0.0.0, I saw many people
> > using 127.0.0.1 and this tends to be somehow an standard... Perhaps some
> > guru around here would kindly guide us ?
>
> 127.0.0.1 would be a host address (the localhost), 127.0.0.0 would be
> a network (unless you've somehow assigned a .0 address to a host).
>
> Since you're only checking the network, I'm not sure that it matters
> if you use .1 or .0 in your isInNet() function. But I could be wrong
> on that bit. :^)
No, we're checking the 'localhost' alias. And besides, if we use 255.0.0.0
as network mask then yes, we shoud/must not use 127.0.0.0, as this is the
network address, so it's a lot safer to use 127.0.0.1 in my opinion. I've
just remembered all those things about IP setups (I had some trouble with
settig up IPs in Linux one time :) )
Thanks.
>
> andrew. (brennan@allegheny.edu)
>
>
Ady (@warp.starnets.ro)
Received on Thu May 08 1997 - 09:48:14 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:08 MST