corrected hostname get in server