WHMCS WP Integration Fatal Error

I am getting a fatal error. I think it might be because the plugin is not getting the IP from the WHMCS URL. See Below

This is resulting in the below page:

Can you please help get this working for me.