Worked remotely for same employer but moved from IL to NC. W2 lists only one address. Do I file for both states?

I worked for the same employer in 2016 but during that time I moved from IL to NC. I kept the same job. My W2 from them lists my current (NC) address but has no mention of the 8 months (Jan - Aug 2016) that I had that job and lived in IL.

Am I to file this W2 under my NC address? Or do I need to file in both IL and NC?