It gets the ip with which the client connects to the server. So if he's behind a vpn, it will show the vpn's ip.