I think I may have the same port 4444 problem with some code I tried to write to learn how to use Selenium.
Basically I tried to write a perl program on Ubuntu to automate the entry of cokezone codes on the www.cokezone.co.uk website.
From my terminal I got the following results:
icleave@icleave:~/Desktop/CokeZone$ perl cokezone.pl
Error requesting http://localhost:4444/selenium-server/driver/?cmd=get
500 Can't connect to localhost:4444 (connect: Connection refused)
# Looks like your test exited with 111 before it could output anything
What advice do you have for sorting this out on Ubuntu?