How to make client connect to multi-server?

Actually I run path finding on client.
And I test the performance of delicate server. AI code is not the most slow code. Character movement costs so many time on each tick