set client port in main, error msg review