How can I get better definition at further range when camera is next to porch light?

What says it all to me is 8MP on a 1/2.5" sensor, built-in night blindness.