when you make a bp box is it best to have the port where the motor of the sub is or outside where the cone is?

just wondering. ive seen both types of boxes. whats the difference? which is better?


port inside with the woofer motor:

port outside, where the cone fires: