Administer WordPress under localhost for two different sites?

I want to host two identical WordPress sites, on two different servers in two different countries under the same domain name, and use DNS routing or load balancing to assign users dynamically to one server vs the other one. But when I set the URL value to example.com and access wp-admin, I get redirected from localhost to example.com/wp-admin. How can I administer WordPress under localhost so that I am able to administer each clone independently?

Hey there!
Check the information in this link