Changed servername from localhost to hostname