Fix method that identifies the local host