Update some configuration files and support dynamic local address.