Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #3066
| From | Ike Naar <ike@iceland.freeshell.org> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: LAN programming |
| Date | 2013-02-20 22:49 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrn3vfskiakoe.9q8.ike@iceland.freeshell.org> (permalink) |
| References | <de83f76f-3c54-417f-a9cb-927696cbe352@googlegroups.com> |
On 2013-02-20, bob <bob@coolfone.comze.com> wrote: > Let's say you are programming on a network where hosts have IP > addresses that are 192.168.0.x. > Can someone help me remember what the valid values of x are for a PC? > Is it something like 1 to 254? > Maybe 2 to 254? > I know some values are reserved or used for broadcasting or something, > but I can't remember exactly what the deal is. Assuming a subnet mask of 255.255.255.0, for the host part of the IP address (the 'x' in your example) the values all-bits-zero (0) and all-bits-one (255) are reserved for the network and the broadcast address, respectively. Also, you cannot use any value that is already in use by other equipment on the network. If there's a router that connects your network to other networks, and that router has address 192.168.0.1 on your network, then you cannot use that address for a PC. So, valid values of x for a PC are 1..254, excluding values that are already in use by other equipment on the network.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
LAN programming bob <bob@coolfone.comze.com> - 2013-02-20 14:05 -0800 Re: LAN programming Ike Naar <ike@iceland.freeshell.org> - 2013-02-20 22:49 +0000 Re: LAN programming Robert Wessel <robertwessel2@yahoo.com> - 2013-02-20 16:55 -0600 Re: LAN programming Geoff <geoff@invalid.invalid> - 2013-02-20 16:10 -0800
csiph-web