in reply to Re^4: Error “selenium server did not return proper status” when starts PhantomJS
in thread Error “selenium server did not return proper status” when starts PhantomJS

I found this fix as well, but it caused other issues as it affected everything. I found a better solution was to add this into ../Selenium/Remote/RemoteConnection.pm

Around line 103, before

my $request = HTTP::Request->new($method, $fullurl, $header, $cont +ent);
Add in this line:
$fullurl =~ s/localhost/127.0.0.1/;
It accomplishes the same thing but limits the effect to Selenium only.