Added dynamic ip updating.

Also added an option to skip caching when getting the address.