Skip to content
DevMeme
2811 of 7590
DataFormats Post #3107 · source on Telegram

The Poop Emoji IPv4 Address

Description

A dark-mode Twitter screenshot from napoleon vegemite, @NapVeg, shows the text: "fun fact: because unicode can use up to 4 bytes of data and an ip address is 4 bytes long, there is an ip out there that can be represented by the poop emoji". The tweet timestamp reads "2:16 PM · May 13, 2021 · Twitter Web App." The joke comes from the overlap between four-byte UTF-8 encodings and the 32-bit size of an IPv4 address. For engineers, it is a compact mix of character encoding trivia, binary representation, and networking absurdity.

Comments

41
Anonymous ★ Top Pick Somewhere in IPv4 space, a packet can technically route to U+1F4A9, which feels like the most honest hostname on the internet.
  1. Anonymous ★ Top Pick

    Somewhere in IPv4 space, a packet can technically route to U+1F4A9, which feels like the most honest hostname on the internet.

  2. @RiedleroD 5y

    explain please

    1. Deleted Account 5y

      🤨

    2. @FLIPFL0P_T 5y

      4-Byte Characters can be encoded with Unicode, and because an IPv4 consists of 32 Bits (4 Bytes), there is an IP that can be represented by a poop emoji

      1. @RiedleroD 5y

        shut up, I already explained why the poop emoji can't be represented with 4 bytes.

        1. dev_meme 5y

          Well, you know ```js const encodeUtf8 = (c) => { return unescape(encodeURIComponent(c)); } let utf8 = encodeUtf8('💩') let ip = '' + utf8.charCodeAt(0); ip += '.' + utf8.charCodeAt(1); ip += '.' + utf8.charCodeAt(2); ip += '.' + utf8.charCodeAt(3); console.log(ip); ```

          1. dev_meme 5y

            IP address 240...* is a Class E address, not available for general use, reserved for research purposes.

            1. @hatkidchan 5y

              does that means I can set my local machine ip to poop emoji?

              1. dev_meme 5y

                Well, not literally

                1. @hatkidchan 5y

                  nothing stops me from setting up DNS server with poop emoji, right?

                  1. dev_meme 5y

                    Yes, but it’s not just up

                    1. @hatkidchan 5y

                      uhh there are some problems

                      1. dev_meme 5y

                        Coz utf isn’t just 4 bytes, and not 4 bytes separated from each other

                        1. Deleted Account 5y

                          utf32 is

                      2. dev_meme 5y

                        You should set resolving via host name for emoji

                        1. @hatkidchan 5y

                          i just tried adding it to /etc/hosts to some local machine and it doesn't work

          2. @RiedleroD 5y

            huh

  3. Deleted Account 5y

    what is unclear

  4. Deleted Account 5y

    🤨🤨

  5. @RiedleroD 5y

    why would the poop emoji result in the IP-address 240.159.146.169?

  6. @RiedleroD 5y

    w h a t

    1. @FLIPFL0P_T 5y

      get siked

    2. Marco Steinberger 5y

      hehe get got

      1. @RiedleroD 5y

        stop bullying me XD

        1. Deleted Account 5y

          you was acting rude first☹️☹️

          1. @RiedleroD 5y

            calm down, they're my friends lol

  7. Deleted Account 5y

    🤨

  8. Deleted Account 5y

    deserved

  9. Deleted Account 5y

    fine then

  10. Deleted Account 5y

    research purposes more like shit purposes🤣🤣🤣🤣🤣🤣🤣

  11. @MagnusEdvardsson 5y

    that's a shitty research

  12. @AlexSokolov88 5y

    https://t.me/sendmegifs/282

  13. @feskow 5y

    def emoji_to_ip(emoji): b = emoji.encode() if len(b) != 4: raise Exception('not 4 bytes') #return f'{b[0]}.{b[1]}.{b[2]}.{b[3]}' return '.'. join (map (str, b))

    1. @Four_Velocity 5y

      Ooooh shish Why not return '.'.join(map(str, b)) 😁

      1. @feskow 5y

        damn, that's better xD, thanks

        1. @Four_Velocity 5y

          Fix and merge to master after that 😉

  14. @mvolfik 5y

    Spoiler: utf-8 isn't just dumping the U+number into however many bytes it requires

    1. @RiedleroD 5y

      by an incredible coincidence, this specific case still works, and I hate that fact.

      1. @mvolfik 5y

        Wait WHAT

      2. dev_meme 5y

        That's a reason why this meme is a good one and was posted. This is about technology and it's even true! At the end, that's a joke about poop and funny one! Beautiful combination from my PoV

  15. @ZgGPuo8dZef58K6hxxGVj3Z2 5y

    *Clicking on random IP adresses*

Use J and K for navigation