Troubleshooting Linux Servers with telnet - page 2
Completely Insecure But Still Useful
HTTP servers are also accessible via telnet:
telnet www.example.com 80Try getting a particular page:
GET /index.html HTTP/1.1 host: www.example.comNote that you need to hit enter twice after the host name line, and you need to specify both the HTTP protocol version, and the hostname.
Most IRC servers run on port 6667. Try connecting to an IRC server like this:
telnet irc.freenode.net 6667This will connect you, but you'll need to set your nickname manually (type NICK yournickname) and join channels with the raw protocol command (type JOIN #thischannel). You'll get a lot of output that you may or may not recognise, and the whole thing is a bit more tortuous than using a real IRC client! But it gives you a chance to experiment with the raw commands, which (as discussed in the O'Reilly book IRC Hacks can be useful if you want to write or improve IRC clients.
You can also try port 9 to test that your telnet client is working OK. It's the discard/null port, so you won't affect any other services.
Telnetting to servers won't always work these days, as some (quite reasonably!) insist on only connecting over an encrypted connection for some services, and telnet is plaintext. However, it can be a useful debugging tool, particularly when you're setting up your own servers to make sure that everything is working as it should. Not to mention... it's always kind of fun to be able to talk to people or servers in their own language.Chapter 20 of the "Linux Cookbook" by your very own Linux Planet editor has detailed sections on testing mail servers with telnet and s_client
- Skip Ahead
- 1. Completely Insecure But Still Useful
- 2. Completely Insecure But Still Useful
Sponsored by BlackBerry
BlackBerry® Enterprise Server Express enables businesses of any size to quickly and easily get started with the BlackBerry solution. It provides advanced BlackBerry smartphone features with no additional software or user license fees, and works with any Internet-enabled BlackBerry data plan or a BlackBerry enterprise data plan. Download now!