revert the change back
log more info when unable to locate
use origin rather than ip
Merge pull request #3 from manyan/master

revert pre-setup, and log ip info if unable to locate