LAN IP masks?

This is a discussion on LAN IP masks? within the Networking/Device Communication forums, part of the General Programming Boards category; are there any definitive (or jsut about standard) IPs i know will be a lan IP? this is to make ...

  1. #1
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332

    LAN IP masks?

    are there any definitive (or jsut about standard) IPs i know will be a lan IP? this is to make my app, internet only or LAN only.

    my code currently cycles through the h_addr_list and checkin the first 3 characters to see if they are LAN ips.

    writing network apps without a LAN sucks
    I loathe pointers

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  3. #3
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    well i had already got 10. 192. and 172. , but friend of mine said one of his IPs was 169. i just found out that was a default one so that would mean:

    10.0.0.0
    172.16.0.0
    192.168.0.0
    169.0.0.0

    are all LAN adresses?

    can i just assume that anyone daft enough to use a public IP for their lan is too stupid to use my app
    I loathe pointers

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    169.254.*.* is not a LAN IP address. It's used when the OS is set to use DHCP but cannot find a DHCP server.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    in any case it's not a net address then

    thank you people
    I loathe pointers

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    For the 172 range, it's actually 172.16.0.0 - 172.31.255.255.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  7. #7
    Registered User
    Join Date
    Jul 2003
    Posts
    85
    I thought the 10.*.*.* range was something special also..?

    http://www.flumps.org/ip/a/indexa.html

    10 Internet Assigned Numbers Authority (IANA) (RESERVED-6)
    This is reserved for private internet use, without connection to the global network
    Mmm..

  8. #8
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    Quote Originally Posted by whackaxe
    well i had already got 10. 192. and 172. [...]
    10.0.0.0

    [...]

    got it
    I loathe pointers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 06:17 PM
  2. Replies: 6
    Last Post: 06-08-2006, 04:11 PM
  3. Client-server on a LAN
    By Niara in forum Networking/Device Communication
    Replies: 3
    Last Post: 02-15-2006, 04:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21