fixing Port for sample
correct port
Clean APIs