Settings

Theme

https://16777217/

16777217.

130 points by phineyes 3 years ago · 89 comments

Reader

teddyh 3 years ago

  $ man 3 inet_aton

  […]

   inet_aton() converts the Internet host address cp from the IPv4
   numbers-and-dots notation into binary form (in network byte order)
   and stores it in the structure that inp points to.  inet_aton()
   returns nonzero if the address is valid, zero if not.  The address
   supplied in cp can have one of the following forms:

   a.b.c.d   Each of the four numeric parts specifies a byte  of  the
             address;  the bytes are assigned in left-to-right order
             to produce the binary address.

   a.b.c     Parts a and b specify the first two bytes of the  binary
             address.   Part c is interpreted as a 16-bit value that
             defines the rightmost two bytes of the binary address.
             This notation is  suitable  for  specifying  (outmoded)
             Class B network addresses.

   a.b       Part a specifies the first byte of the binary address.
             Part b is interpreted as a 24-bit value that defines the
             rightmost three bytes of the binary address.  This
             notation is suitable for specifying (outmoded) Class A
             network addresses.

   a         The  value  a is interpreted as a 32-bit value that is
             stored directly into the binary address without any byte
             rearrangement.

   In all of the above forms, components of the dotted address can be
   specified in decimal, octal (with a leading 0), or hexadecimal,
   with a leading 0X).  Addresses in any of these forms are
   collectively termed IPV4 numbers-and-dots notation.  The form that
   uses exactly four decimal numbers is referred to as IPv4 dotted-
   decimal notation (or sometimes: IPv4 dotted-quad notation).
https://manpages.debian.org/stable/manpages-dev/inet_aton.3....
  • larschdk 3 years ago

    This is just a convention from BSD, and is not even POSIX compliant. However, 'ping 1.1' is a convenient shortcut (actually pings 1.0.0.1). iproute2 and systemd do not use inet_aton and don't follow this BSD4.2 convention and instead parse it as '1.1.0.0' or not at all.

    • gunapologist99 3 years ago
    • badrabbit 3 years ago

      I saw someone ping 127.1 a while back and I was so surprised I didn't know about this even after a few years in networking in the past.

    • oleganza 3 years ago

      (Not to pick on your particular comment, but to highlight a broader issue.)

      I feel like convenient shortcuts are becoming hugely inconvenient when a system has hundreds of them. The unlimited amount of unix non-orthogonal options made "for convenience" cannot scale mentally.

    • xani_ 3 years ago

      > However, 'ping 1.1' is a convenient shortcut (actually pings 1.0.0.1).

      Convenient for who!? that one guy that put his home network in 10.0.0 class ?

      • codefined 3 years ago

        1.0.0.1 is owned by Cloudflare and is used for their DNS offering. It's likely a reliable 'ping' candidate for checking that your machine has internet access

        [0] https://1.0.0.1/

      • WaitWaitWha 3 years ago

        Hey now, what is wrong with 10. class at home ;-)?

        I chose 10, for simpler segmentation in my head primarily as I have a lot of devices in my house (10.<grouping/VLAN>.<location>.n), less chance of conflict as devices come online (devices i connect often are coded to 192, VPNs, etc.), helps with my VPNs between my locations.

        • xani_ 3 years ago

          There is a good chance if you work for company that they will use 10.x for their server stuff.

          For similar reason we also steered away from home router area of 192.168.X.X for our company network stuff.

          • raffraffraff 3 years ago

            The last shitshow I worked at insisted on 192.168.x.x for their corporate VPN. I'm not sure what they were smoking, but there was no way in hell I was going to reconfigure my entire home network so I could use their shitty VPN, so I just found another way in. Dumbasses.

      • checkyoursudo 3 years ago

        I suppose you use 172.16/12? :P

        • xani_ 3 years ago

          We use 10/8 for servers, 172.16/12 for management, 192.168.x (where x is in double/triple digits) for users.

Wannabe1337 3 years ago

You can also try my tool online which obfuscate an ip address. https://wannabe1337.xyz/text-ipobfuscator

  • ricardobayes 3 years ago

    Is there a legitimate reason why to obfuscate an ip address?

    • herpderperator 3 years ago

      To get around something that is otherwise blocking it? Seems useful as part of, for example, pentesting.

      • grayfaced 3 years ago

        On the wire it looks identical. It would have to be a very niche use, like a web form that filters periods.

    • stanislavb 3 years ago

      I'd suggest - SPAM.

      For example, I use the presence of IPs in the URL as a SPAM signal. If one used such an obfuscated URL, they could avoid some of the SPAM filters.

  • anakaine 3 years ago

    You may want to be aware that your banner ad was advertising layer 4/7 most powerful services.

    I'm guessing advertising ddos / stressor services.

tony-allan 3 years ago

Another way to encode https://1.0.0.1/

dheera 3 years ago

> The free app that makes your Internet safer.

I don't consider anything closed source to be safe.

> 1.1.1.1 with WARP

WTF is WARP

> Your Internet service provider can see every site and app you use—even if they’re encrypted. Some providers even sell this data, or use it to target you with ads.

OK, fantastic, so instead of handing my ISP all my data, I hand it to ... you?

> the fastest DNS resolver on Earth.

I'm pretty sure that the for the 5 full seconds it takes a site like Gmail that saving 9ms on DNS isn't going to change much.

  • phineyesOP 3 years ago

    Was more pointing out the numbered hostname, not the service its-self.

    16777217 is just the lowest number that corresponds with a routed IP address :)

  • WHATDOESIT 3 years ago

    > I don't consider anything closed source to be safe.

    Having the source won't help you in any practical way to verify the security of this online service. The app is just a relatively simple connector to a VPN. You need to trust the service/its operator, and at that point you might as well trust that app too.

    > OK, fantastic, so instead of handing my ISP all my data, I hand it to ... you?

    Exactly right and fantastic indeed. You have to hand it to someone at some point. Having a choice and choosing something like Warp sounds much better than handing out my data to any random unknown ISP wherever I connect to a wifi (especially if I am visiting foreign countries with somewhat harsher network tracking laws) - and some people don't trust their home ISP too but don't have other options.

    I'm happy for you that you have a trustable ISP with good opsec who won't betray you. Not everyone does.

    They said "safer" not "perfectly safe".

GTP 3 years ago

Doesn't work on Firefox for Android. Edit: as noted in another comment, it works when removing the final dot.

Semaphor 3 years ago

Not working in FF (Desktop stable, win)

  • messe 3 years ago

    It doesn't work on firefox on mac either, but interestingly, if you remove the final period '.': https://16777217 works.

  • compsciphd 3 years ago

    there's a dot at the end of the url when you click on it which breaks it

    • messe 3 years ago

      https://1.0.0.1. works though, so the question is why a final period works for traditionally formatted IPv4 addresses (uint8.uint8.uint8.uint8), but not those formatted as a plain old uint32. If I wasn't jetlagged and a tad drunk I'd dig into it a bit.

      I do wonder if there's a typo in the URL that OP intended, because the title is "https://16777217/" whereas the URL is "https://16777217." and . and / are only a key away from each other (at least on my IE/UK ISO layout).

      • phineyesOP 3 years ago

        I had to add the trailing period for HN to accept it as a valid URL. However, for me (using Chrome on macOS Monterey), Chrome ignores the period and renders it as "https://16777217/". I thought it would be the same on other browsers. Interesting.

    • retcore 3 years ago

      RFC 1034 A fully qualified domain name must have a final dot/period after the tld. Adding the dot to a address that isn't resolved via DNS seems to be confusing the lookup.

      Edit: leaving the above despite being untrue save semantically. inet_atom just wants byte order addresses dot separated and adding a trailing dot isn't anticipated and returning a error.

gunapologist99 3 years ago

This has been part of POSIX for decades, but not in Golang net yet. :(

https://github.com/golang/go/issues/36822

mudream4869 3 years ago

Golang's url.Parse works :) https://go.dev/play/p/A6O6yrSDrZm

WuRB3u27qAqegA8 3 years ago

I like how variants of this have been discussed on here about 5 times in the last month.

Yes, weird formats that no one has used in about 3 decades (if they even used them then) are still supported. These include just about every way you can think of to encode a 32 bit IP address into between 1-4 groups. Cool.

  • graypegg 3 years ago

    Did you make a new account just to complain about how you already knew something?

londons_explore 3 years ago

Warp bypassed government blocked sites in my country (the UK - which blocks RT.com as part of war efforts).

I'm not sure how long they'll be able to run such a service till the government tells them they have to implement site blocking.

  • sammy2255 3 years ago

    The UK is fighting a losing battle. Right now they snoop SNI headers and terminate connections to banned websites. But ECH is ready to be rolled out

    • silon42 3 years ago

      ECH can't be mandatory as many enterprises (that take security seriously) will block it, so they'll also be able to. No?

      • dogleash 3 years ago

        Don't most enterprises already use an in house root cert to MITM all https anyway?

      • TingPing 3 years ago

        It will take years but I believe yes it will. SNI was a big privacy mistake.

        Companies just need new solutions . SNI was never a perfect one.

  • killingtime74 3 years ago

    With the speed of bureaucracy, at least 10 years?

  • nly 3 years ago

    I'm in the UK and RT.com loads fine.

  • awaisraad 3 years ago

    does switching to DoH works for you?

    • londons_explore 3 years ago

      No - the sites are blocked by IP address and give ERR_SSL_PROTOCOL_ERROR when attempting to access them.

jquery 3 years ago

Very cool, but how does it affect mobile battery life? Is this something I want turned on all the time or best used when traveling?

I want to trust cloudflare here but I am hesitant to enable a VPN on my phone at all times.

Uptrenda 3 years ago

Is there any good reason to support this notation for URLs? Do you think this format would be faster to parse than regular IPs?

  • OrangeMonkey 3 years ago

    Its been around since like 1996 at least, likely earlier.

    Its A.B.C.D with A255^3 + B255^2 + C255^1 + D255^0.

    Used to get around filters a long time ago but broke as most sites host multiple domains and it needs your browsers 'hostname' it sends it as part of the request to actually return the right site/page.

  • blfr 3 years ago

    Nah, pretty sure it's pure netops wankery. I like it though.

aarobot 3 years ago

For 'google.com':

https://3627733454/

vmoore 3 years ago

https://9.9.9.9/

pGuitar 3 years ago

Firefox shows the ip address 1.0.0.1 in the "status bar" when I hover that address

drug5 3 years ago

Interesting. How is this encoded?

brassattax 3 years ago

https://0x1000001

bmon 3 years ago

similarly, https://1.1

  • capableweb 3 years ago

    Or, one character shorter: http://ai

    Is this maybe the shortest (currently reachable) domain?

    • stuartd 3 years ago

      Some browsers need a trailing dot - http://ai. - this site was on HN a week or so ago in an article and I guess when they saw the resulting traffic they changed it, used to be the Antilles domain registrar homepage.

jarek83 3 years ago

With Warp on, youtube does not play anything for me.

worldmerge 3 years ago

How does this work?

diimdeep 3 years ago

> ping 1.1

lol, cool

ada1981 3 years ago

What’s the diff between 1.1.1.1 and 1.0.0.1 ?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection