From The Hacker News

  • nul9o9@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    Interesting, I didn’t know IPv4 addresses converted to hex could be used for anything.

    • PowerCrazy@lemmy.ml
      link
      fedilink
      arrow-up
      10
      arrow-down
      6
      ·
      edit-2
      1 year ago

      Dotted Decimal is just a human convention. IPs are just 32 bit numbers meaning binary digit, and octal, dotted decimal and Hex are all valid representations of that same number. Subnet masks work via binary math.

      Almost every single thing you would use an IP address for, you can substitute dotted decimal for octal or hex representations.

    • bfg9k@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      We have PABXes that use VxWorks and it uses hex IPs to identify each ethernet port

      Might be easier to use with lower-level stuff like pure C?