fixed a bug that client receives on wrong port