We've learned that each device connected to a network is assigned an IP address. This includes your mobile phones and computers, and if you have a toaster that's hooked up to the Internet then your toaster, too.
In your Terminal, type ipconfig getifaddr en0
to check the local IP address that your WiFi router has assigned to you on the network.
Either type curl ifconfig.me
or simply go to ifconfig.me
from your browser. This shows you your public IP address.
πββοΈ Why do you have two IP addresses?
πββοΈ Check to see if the IP addresses are the same as your classmates. Which are the same and why?
Since servers are computers, too, they would have an IP address.
Let's try to find out what the IP address of facebook.com
is. There are several ways to do this.
Try using different online tools to find the IP adress of facebook.com
like this one.
πββοΈ Are their results the same? If they are different, why might that be?
In the Terminal, we can type nslookup facebook.com
to check for its IP address.
πββοΈ Compare what you get with the online tool you used earlier. Are their results the same? If they are different, why might that be?
Now try typing in the IP address directly into the browser. If you have multiple IP addresses, try them all and see where they take you.
In your Terminal, we can type traceroute facebook.com
to observe the journey your computer takes to get to a particular website.
πββοΈ How many hops does it take to get to facebook.com
?
πββοΈ If you're connected to a VPN, try this with and without your VPN connection and see if there is a difference.