The symmetric arrangement of the iodine and bromine centred 3-center–4-electron halogen bond is revealed to remain preferred in a polar, aprotic solvent environment. Acetonitrile is unable to compete with pyridine for halogen bonding; however, its polarity weakly modulates the energy of the interaction and influences IPE-NMR experiments.