Change freepbx's AMI IP

So I’ve run into a bit of a problem, I need to change the IP that the freepbx gui is looking at to connect to AMI, Now i’ve changed this in the funcations.php and php-asmanager.php files to point to the correct IP however freepbx still errors out saying its trying to connect to localhost.

I’ve grep’ed all the files and there isnt a single “localhost” or “” in there, How do I tell freepbx to look elsewhere to connect to AMI