fix port for rust and 7d2d protocols