How would I log IP connections to a game server that I am running thats using winsocks. Ive have used 3rd IP loggers for games such as delta force and quake but have no idea how the authors did this.

Ive logged connections in simple winsock chat programs by including the logging code into the exe of the server. But logging conections to a server that I didnt write or have source code stumps me. How is this be done.