changed hostname to get machine name instead of localhost