In the real world, we use physical addresses to help us find where a friend lives, where a business is located, or where a party is being thrown (well, I don't because I'm not invited to parties, but I digress).
In computing, web clients find other computers over the internet using Internet Protocol (IP) addresses. Each device connected to the internet has a unique IP address.
When we browse the internet, we type in a human readable domain name. That domain is converted into an IP address. The IP address tells our computer where the server is located on the internet.
Click to play video
An IP address typically looks like a sequence of numbers separated by periods, ranging from 0 to 255.
Cloudflare is a tech company that provides a cool HTTP server that we can use to look up the IP address of any domain.
I've provided a fetchIPAddress function that uses the fetch API to communicate with Cloudflare. The function takes a domain name as input and should return the IP address associated with that domain.
Failed to fetch - If you are having difficulty running this assignment make sure your browser is not blocking requests to third party domains!