Finding closest server strategy

Options
Hello,
I'm working on a soccer game uses photon realtime which will be ready to publish a few weeks later.
The question is sometimes (not very often) client does not connect the closest server. So the problem is I save the wrong server code and reuse it later. After seeing this issue I dropped saving strategy, now clients will ping every time for all servers. What's the best strategy for this issue?

thanks