Search code examples
socketsnetwork-programmingip-addresscommon-lispclisp

Obtain IP address of connecting client in Clisp


So I have a server, written in Common Lisp to be run in the Clisp interpreter. When a client connects to the aforementioned server, I need a way to obtain their IP address. Is a function that would allow me to do this? Google-Fu is yielding limited results. Thanks in advance.


Solution

  • SOCKET:SOCKET-STREAM-PEER will do what you want.