Both depend on the attraction of electrons - electronegativity deals with attraction of bonded electrons, ionization energy deals with the attraction of an atom's own valence electrons. More protons and a smaller atomic radius will increase both.
Hope this helps you find the answer