The error means a string (piece of text) is not ended with a ‘ or “.
In the quote above I see no ‘, behind the hostname.
But I don’t get it, why do you need to edit that file?
All I did to access FirePlay remotely, was by placing it in the firefly admin directory. Then I opened the page from anywhere, and it works like a charm.