AltX is a lightweight serverside mod for minecraft fabric that logs player IP addresses & detects alternate accounts or shared IPs.
Example of /altx list Without and with altx.viewips
Example of /altx trace Steve Without and with altx.viewips