4

I am having a hard time understanding how the ident protocol works. I came across a summary of how it works at Wikipedia however don't quite follow what it means

The Ident Protocol is designed to work as a server daemon, on a user's computer, where it receives requests to a specified port, generally 113. In a query, a client specifies a pair of ports (a local and a remote port). The server will then send a specially designed response that identifies the username of the user who runs the program that uses the specified pair of ports.

For example I assume that every OS has an ident server running. If so where does it receive an ident request to a specified port? In that query it states the client specifies a part of ports? Which is the client and which is the server?

user
  • 29,910

1 Answers1

4

where does it receive an ident request to a specified port?

The Ident server listens on TCP port 113.

In that query it states the client specifies a part of ports? Which is the client and which is the server?

The client initiates the connection, the server accepts it. In this case, your computer is the Ident server since it runs the Ident daemon and listens for connections, and the IRC server is the Ident client since it initiates the Ident connection. (IRC is pretty much the only protocol left that uses Ident.)

The RFC example says:

<port-on-server> , <port-on-client> : <resp-type> : <add-info>

6193, 23 : USERID : UNIX : stjohns

Here port-on-client is the remote side (Telnet server acting as Ident client), and port-on-server is your computer (acting as Ident server).

u1686_grawity
  • 452,512