Useful commands (Linux):
- ping (e.g.: ping www.google.com) - Check if www.google.com can be contacted.
- dig (e.g.: dig www.google.com) - Gives the IP address(es) of www.google.com
- ip a - Shows the network adaptors and details including IP addresses.
- ip r - Shows the routing table
Useful commands (Windows):
- ping (e.g.: ping www.google.com) - Check if www.google.com can be contacted.
- nslookup (e.g.: nslookup www.google.com) - Gives the IP address(es) of www.google.com
- ipconfig - Shows the IP address of the computer, subnet mask and default gateway.
- Question: What command can be used to view the routing table?
Software
- Download Putty
Download the MSI (‘Windows Installer’) for your architecture (typically 64-bit x86)
How to make an HTTP request using a telnet client (like Putty)?
Linux (using 'telnet' tool):
$ telnet www.google.com 80 Trying 2404:6800:4003:c01::68... Connected to www.google.com. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.0 200 OK Date: Thu, 05 Feb 2026 10:09:07 GM ...
Windows (using Putty):
- Start Putty application.
- Specify the host name (like www.google.com).
- Specify port number 80.
- Specify connection type 'Raw'.
- Connect.
- Type "GET / HTTP/1.0" and hit Enter key.
- Hit Enter key again.
- You should now see the output from the server.