On Linux (and probably Mac too), easy. Plenty of FOSS tools out there that will monitor and log point-to-point connection.
On Windows, no clue. Wireshark maybe, even if it's an overkill.
On Windows, no clue. Wireshark maybe, even if it's an overkill.