1 00:00:00,006 --> 00:00:01,009 - [Instructor] A very useful tool 2 00:00:01,009 --> 00:00:04,003 with unexpected uses is Telnet. 3 00:00:04,003 --> 00:00:07,004 By default, it isn't installed on Windows anymore, 4 00:00:07,004 --> 00:00:10,005 but a simple Google can give you the steps to install. 5 00:00:10,005 --> 00:00:12,002 On my Windows 10 machine, 6 00:00:12,002 --> 00:00:16,002 I can enter the following command to install it. 7 00:00:16,002 --> 00:00:19,006 (keyboard clicking) 8 00:00:19,006 --> 00:00:24,007 Now, from a command prompt, I can simply type, "telnet" 9 00:00:24,007 --> 00:00:27,007 to enter the program. 10 00:00:27,007 --> 00:00:31,000 While the Telnet utility allows me to Telnet into equipment 11 00:00:31,000 --> 00:00:33,001 for remote administrative purposes, 12 00:00:33,001 --> 00:00:36,001 it's also extremely useful for troubleshooting. 13 00:00:36,001 --> 00:00:38,004 I looked up google.com's MX record, 14 00:00:38,004 --> 00:00:41,006 then traced down the A record associated with that entry. 15 00:00:41,006 --> 00:00:44,001 I'm going to test SMTP on that mail server 16 00:00:44,001 --> 00:00:45,009 by Telnetting into it. 17 00:00:45,009 --> 00:00:48,001 From the command line, I'll simply enter "telnet" 18 00:00:48,001 --> 00:00:49,007 then the IP address to connect to, 19 00:00:49,007 --> 00:00:51,007 and last, the port to connect on. 20 00:00:51,007 --> 00:00:59,004 In this case, telnet 142.250.138.26 25. 21 00:00:59,004 --> 00:01:02,004 By default, Telnet that wants to connect on port 23. 22 00:01:02,004 --> 00:01:05,001 But in this case, I'll change it to port 25. 23 00:01:05,001 --> 00:01:07,004 I have the prompt available from the mail server. 24 00:01:07,004 --> 00:01:09,004 I can give the server an hello command 25 00:01:09,004 --> 00:01:12,002 and see if it responds. 26 00:01:12,002 --> 00:01:14,004 This is great for testing simple connectivity 27 00:01:14,004 --> 00:01:17,008 to a mail server or relay server. 28 00:01:17,008 --> 00:01:20,008 I can also verify a web server using Telnet. 29 00:01:20,008 --> 00:01:23,008 I'm going to telnet gregsowell.com on port 80 30 00:01:23,008 --> 00:01:26,003 the standard HTTP port. 31 00:01:26,003 --> 00:01:31,005 Telnet gregsowell.com on port 80. 32 00:01:31,005 --> 00:01:35,000 If the session shows a blinking cursor in the top left, 33 00:01:35,000 --> 00:01:37,005 that means I have an established TCP session. 34 00:01:37,005 --> 00:01:41,000 From here, I can type any letter and hit Enter. 35 00:01:41,000 --> 00:01:44,008 The server spits some info back at me with an error message. 36 00:01:44,008 --> 00:01:46,008 Sometimes the server won't spit anything back 37 00:01:46,008 --> 00:01:49,009 but I can still see if the session is established. 38 00:01:49,009 --> 00:01:52,005 Telnet is a quick and simple way to verify 39 00:01:52,005 --> 00:01:56,000 if a TCP session can be established.