When i ping 8.8.8.8 from my home computer (europe) i get around 26 ms latency.
When i ping 8.8.8.8 from a server(US) i get around 1 ms latency.
When i ping my (US) server from home (europe) i have 130 ms latency.
I know that i can setup a custom DNS/nameservers and attach it to my domain so it can be used to geographically resolve domain names / route traffic to the closest server/loadbalancer.
However, as my experiment above showed apparently something similar is possible with ip's?
Can someone explain to me how this works / how i can replicate it?