Re: stupid question about IP addresses
From: Alun Jones (alun@texis.com)Date: 02/08/02
- Previous message: Thom Price: "odd port activity"
- In reply to: noir: "Re: stupid question about IP addresses"
- Next in thread: Philip: "Re: stupid question about IP addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: alun@texis.com (Alun Jones) Date: Fri, 08 Feb 2002 15:11:34 GMT
In article <16114248.f5b230@there.is.no.cabal>, noir <no@yes.com> wrote:
>Yes you can use numbers over 255 in some OS'es. If you have 2 unsigned
>bytes, what happens if you do this: ff+01 ? FF gets incremented to
>00. As an example, if you use win9x, go to console and type:
>
>ping 383.256.256.257
>
>Ping does resolve the invalid, but reasonable IP address. However, it
>still is IMPOSSIBLE to get any more IP addresses than 2^32.
Either you don't understand what's going on here, or you're being
mindbogglingly nitpicky.
To be equally nitpicky back, you aren't _using_ numbers over 255 in your
example at all. You're asking for numbers over 255, but the OS isn't going to
use them - if it works at all (FYI: Windows doesn't do that ping) it'll take
each number modulo 256 before passing it into the conversion from dotted-quad
decimal to 32-bit IP address. Your example goes to 127.0.0.1, if it goes to
anything at all.
Alun.
~~~~
[Note that answers to questions in newsgroups are not generally
invitations to contact me personally for help in the future.]
-- Texas Imperial Software | Try WFTPD, the Windows FTP Server. Find us at 1602 Harvest Moon Place | http://www.wftpd.com or email alun@texis.com Cedar Park TX 78613-1419 | VISA/MC accepted. NT-based sites, be sure to Fax/Voice +1(512)258-9858 | read details of WFTPD Pro for NT.
- Previous message: Thom Price: "odd port activity"
- In reply to: noir: "Re: stupid question about IP addresses"
- Next in thread: Philip: "Re: stupid question about IP addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|