One to thing to note with a default ubuntu install is that if it can't look up the hostname you gave it at install time, it creates a default entry in /etc/hosts of 127.0.1.1 (from memory) which can cause problems if you try and connect remotely... solution is to change this IP to the real IP address
[Message sent by forum member 'jsl123' (jsl123)]
http://forums.java.net/jive/thread.jspa?messageID=240677