set up hostname as 'localhost' from server connections