your code looks like
java. anyway.
throwing an "unkown host exception" has the following reason:
"Thrown to indicate that the IP address of a host could not be determined." (from
java.net API )
try to prompt the hostname from within your application in System.out.
if you know the hostname you could ping the server by its name.
if this doesn't work, you could add the hostname and it's IP to a file called hosts (on LINUX and Windwows machines).
LINUX: /etc/hosts
WIN: [WINHOME}\system32\drivers\etc\hosts