fixed localhost address in server

fixed the need for changing localhost to address in server

updated javafiles