Hi David,
I think you mean Wordfence 5.0.3? Is that right?
This means you need to check the config option on the options page for WF where it says "how does wordfence get an IP address" and change that. Try the REMOTE_ADDR setting first and then generate a few hits on your site and check if it works.
Regards,
Mark.