Interplanetary magnetic field orientation and the magnetospheres of close-in exoplanets