add custom port on client
strdup on load config