Posts

Showing posts from July, 2020

The 10 Useful Networking Commands You Should Know

Image
What is my IP address? Who is the host of this website? Which mail service is this domain using? There exist web tools that can uncover these details but this sort of research can also be done using the command line on your computer. Let’s explore a few essential networking commands that will help you know everything about a website from the terminal itself. What is my IP address curl https://checkip.amazonaws.com Make a curl or wget request to the checkip.amazonaws.com and it prints the public IP address of your computer. You can also connect to Akamai’s whatismyip.akamai.com domain get your external IP address. What is my Private IP address ifconfig en0 | grep inet Your computer has a private IP address that only work within the local network. For older Macs with a wired Ethernet port, use en0 for Ethernet interface or en1 for the WiFi interface. The networksetup -listnetworkserviceorder command will print a list all network interfaces available on your machine...