Avoid use of getLocalHost since it causes problems on Mac