16.2 NNTP Protocol
The NNTP protocol is specified in RFC 977. The NNTP protocol server listens at a well-known port 199/TCP.
Once again, as the NNTP protocol commands are in ASCII, it is possible to use the Telnet program (for example, from Windows 2000/XP) to communicate with the news server:
C:\WINNT>telnet news.provider.com 119
After a connection is established, the server will introduce itself as follows:
200 news.provider.com InterNetNews NNRP server INN 2.4.1 ready
(posting ok)
.
The first line of a reply is always a status line indicating how successful we were. The status line begins with a three-digit status code. The three-digit status codes are similar to those in the FTP and HTTP protocols:
100 help text follows 199 debug output 200 server ...
Get Understanding TCP/IP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.