fixed ip update from wallet
added tests