* get local ip for rpc whitelist on linux/win32/mac

Change-Id: I65caa6c333a5f55932cb5f916a06985d22cf6f8b