localhost made default if hostname not resolved in app