sets right port