change tcp port
add a flag for verify connected