Check Server Address client used to connect

So, I’ve bought a few domains and have had people in the past come from a non advertised domain onto the server.
Since minecraft server domains often become reused once the server gets shut down, wondering if it was possible to tell what address the user connects from. Specially for when one of the domains is expiring and don’t want to lose the players that connect through that domain.

I know it’s technically possible (Sponge plugins can access it through Player.getConnection().getVirtualHost()) but I don’t know of any plugins that do that right now.