After studying the server-side then client-side implementation of the “ident” protocol (defined by RFC 1413 and normally using port 113 in TCP) implement an ident client in a mini server.
For the server port of our application, we will choose a free port number on the Unix server. As an example, I would take the value 2000, but if you are around twenty students doing the same practical work, each one can take a value between 2001 and 2020 (guided by the teacher's instructions).
For the IP address of the machine, I will use here 127.0.0.1 but you will replace it with the IP address of the Unix server indicated by the teacher.
On the Unix server, which you use for the lab, launch 3 command line interfaces (unix shell) from 3 different windows:
Note: From here, you can communicate between the two windows: all messages sent from one window are displayed on the other.
By comparing with what is written in RFC 1413 available on the internet, students can analyze the results obtained in the third window.
Students can start the experiment again with their partner who will place the command " telnet 127.0.0.1 2000 ". And they will find that the ident server does not respond the same when crossing the source and destination port numbers.
Create, in C language, a program that accepts server connections on port 2000 and then displays the login of the account that used the client-side call socket by querying the server ident.