add ip address to config if it is set