Client code updated.

support specific Serv IP & Directory.