client run both local and public