fix on dev mode and private ip check