Send hostname from java client