You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode URL: the three parts of a web address, and why you type only two

What happens when you type a web address and press Enter

IP addresses: why the internet cannot use a website's name

You type the name of a website. But the internet cannot use that name. The machines that carry your request read something else.

  1. 1 Watch a message from someone else reach a machine on the way. The machine reads one line, a number, and sends the message one step closer to it.to:198511007from:20301139example numbersa machine on the wayTo 198.51.100.7?That way!

    Watch a message from someone else reach a machine on the way. The machine reads one line, a number, and sends the message one step closer to it.

  2. 2 That number is how a computer is reached on the internet, and it is called an IP address. The server of the website is reached at one, like 198.51.100.7 here.the server198.51.100.7example numbersan IP addressThat numberis me.

    That number is how a computer is reached on the internet, and it is called an IP address. The server of the website is reached at one, like 198.51.100.7 here.

  3. 3 Every message also carries the IP address it comes from, so an answer can find its way back: that number becomes the "to" line of the answer. Yours is given to you by the network you connect through.to:203011325from:198511007example numbersyouan answer, coming back to you

    Every message also carries the IP address it comes from, so an answer can find its way back: that number becomes the "to" line of the answer. Yours is given to you by the network you connect through.

  4. 4 Names exist for people: a name is easy to remember, and a string of numbers is not. The machines never needed them.youen.wikipedia.org:easy to remember!a machine on the way198.51.100.7:all I can read.

    Names exist for people: a name is easy to remember, and a string of numbers is not. The machines never needed them.

  5. 5 Your request has a name and an empty "to" line, and your phone does not have this number yet. Still, a moment after you press Enter, the right one is there, out of billions. Who told it?en.wikipedia.orgto:from:your request?

    Your request has a name and an empty "to" line, and your phone does not have this number yet. Still, a moment after you press Enter, the right one is there, out of billions. Who told it?

  6. Quick check

    A message says "to: shop.example.com", and its number line is empty. Can a machine on the way pass it on?Can it goanywhere?shop.example.comto:from:

    A message says "to: shop.example.com", and its number line is empty. Can a machine on the way pass it on?

    Show the answer

    No. A machine on the way reads only the IP address on the "to" line, so a message with no number goes nowhere.

  7. Go further

    Where the name comes from, and the two kinds of IP address in use today.IPInternet Protocol: therules for the "to" and"from" lines you saw198.51.100.7the older kindfour numbers, each from 0to 255: about 4.3 billionaddresses in all2001:db8::7example numbersthe newer kindfar longer, made becausethe older kind runs short.Both are in use today.

    Where the name comes from, and the two kinds of IP address in use today.

Next episode DNS: how your phone finds the IP address of a website it never visited

Share this comic

More comics