fallback to locahost if the wifi is not available