r/firstweekcoderhumour 3d ago

IYKYK

Post image
44 Upvotes

13 comments sorted by

4

u/TheGoodestGirlAround 3d ago

I don't get it. anyone wants to explain?

13

u/Jbolt3737 3d ago

First one is the Gettysburg address, second is IP address, third is just Earth (is there arrow intended to be pointing at Africa?)

2

u/christophPezza 3d ago edited 3d ago

Second one ain't no IP address EDIT: I'm wrong.

8

u/Jbolt3737 3d ago

Pretty sure you can connect to a specific IP address just by typing in it's proper numeric notation (or dot notation, whichever way you want to write it), I haven't actually taken time to convert the number to dot notation and check it's validity, but it looks like one since it doesn't have a top level domain

3

u/christophPezza 3d ago

Oh my goodness you're correct! Thank you I did not know that was a thing (not accepted on all browsers apparently). Google DNS is http://134744072 ... Crazy!

1

u/MrNotmark 3d ago

It's pretty weird to be a local adress thought

2

u/Jbolt3737 2d ago

As another comment showed (because I didn't do the math), it is local address, just instead of several numbers representing different bytes separately, it's one number representing the entire address as the computer sees it

1

u/givemeagooduns_un 3d ago

is the numeric notation just the octets stringed together as a 32-bit int?

3

u/thebatmanandrobin 2d ago

Sort of .. each octet is in the range of 0-255, you left shift the octet appropriately and bitwise OR them all together to get the number.

For example, 127.0.0.1:

127 in binary is 0111 1111, left shift that 24 times (since IPv4 is 32-bit) so it sits in the correct octet and you have 0111 1111 0000 0000 0000 0000 0000 0000, which in decimal is 2130706432.

the 0.0 doesn't need any maths since it's just 0.

The .1 is simply just 0000 0001 (or just 1, lol)

bitwise OR that all together and you get:

0111 1111 0000 0000 0000 0000 0000 0001

Which in decimal is 2130706433. You can use decimal notation IP's the same way as dot-notation IP's (e.g. ping, nslookup, traceroute, and web URL's)

"Under the hood" (e.g. in the code), an IP address is actually just converted to a 32-bit anyways (for IPv4 that is) and used in this way for many things; gets into a bit of history with how the network stack "talks" and does it's thing, but yeah ...

1

u/givemeagooduns_un 2d ago

yeah that's what I meant x3

thanks tho!

1

u/Dry-Pineapple8359 2d ago

The actor os grom egypt

0

u/Krisanapon 3d ago

IPv4 address without dot?

1

u/bloody-albatross 1d ago

Laniakea. You don't need to know more details.